A peculiar problem. Upgraded to version 7 in two computers running a) Windows 7 64bit and b) Windows 8.1 64bit.
Same settings for both codelite installations, same project. Rebuilding the project on Windows 7 worked fine and run successfully. Rebuild the project on windows 8.1 worked but program crashes upon execution.
The only thing i came up with is that there is a 32bit vs 64bit problem. Checking with dependency walker showed that there are some DLLs referenced which are 32bit.
Any ideas what could be wrong? Are there any new flags in 7?
I also tried to force 64bit compilation by adding to the compiler and the linker the -m64 flag.
version 7, gcc 64bit 0xc000007b
-
- CodeLite Veteran
- Posts: 59
- Joined: Wed Dec 31, 2014 6:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: version 7, gcc 64bit 0xc000007b
The error you are getting is not related to codelite.
It is a mess in DLL loading with your project.
You need to tell us more about your project, for example, is it a wxWidgets application? in this, are you including a .rc file? make sure that it uses the correct resource file (wx provides 2 one for 32 and one for 64 bit)
Setting the -m64 flag will not help, if the linker is picking the wrong binaries (i.e. it is a linker issue and not a compiler issue)
Make sure your manifest clearly states it is a 64 bit application
Eran
It is a mess in DLL loading with your project.
Make sure you are using the correct depends executable (you need the 64 bit version to check a 64 bit application, or you will get false results)nezos wrote:Checking with dependency walker showed that there are some DLLs referenced which are 32bit.
You need to tell us more about your project, for example, is it a wxWidgets application? in this, are you including a .rc file? make sure that it uses the correct resource file (wx provides 2 one for 32 and one for 64 bit)
Setting the -m64 flag will not help, if the linker is picking the wrong binaries (i.e. it is a linker issue and not a compiler issue)
Make sure your manifest clearly states it is a 64 bit application
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Veteran
- Posts: 59
- Joined: Wed Dec 31, 2014 6:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: version 7, gcc 64bit 0xc000007b
You were correct regarding the dependency walker. i was running a 32bit version in the 8.1 windows computer. The problem stems from wxwidgets where for some reason it is looking for the 32bit version. I will investigate it further. I guess it was working without taking into account some variables and now the new version correctly checks for env variables.
Thanks Eran and thanks for the new version.
Thanks Eran and thanks for the new version.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: version 7, gcc 64bit 0xc000007b
You should add a resource file (if you don't have one yet)
and use this code inside it:
By loading the correct manifest your application will load the proper comctrl32.dll et al (I experienced these error when I started building codelite with a 64 bit compiler)
Eran
and use this code inside it:
Code: Select all
#include "wx/msw/wx.rc"
#if WIN64
1 24 "wx/msw/amd64.manifest"
#else
1 24 "wx/msw/wx.manifest"
#endif
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Veteran
- Posts: 59
- Joined: Wed Dec 31, 2014 6:36 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: version 7, gcc 64bit 0xc000007b
Thanks Eran for the help, i had it already (we had discussed this in the past with 64bit in wx), the problem was in the PATH variable of system settings, which Codelite 6 wasn't taking into account.
Thanks again for the help and efforts!
Thanks again for the help and efforts!