Page 1 of 1
version 7, gcc 64bit 0xc000007b
Posted: Mon Feb 09, 2015 1:58 pm
by nezos
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.
Re: version 7, gcc 64bit 0xc000007b
Posted: Mon Feb 09, 2015 2:09 pm
by eranif
The error you are getting is not related to codelite.
It is a mess in DLL loading with your project.
nezos wrote:Checking with dependency walker showed that there are some DLLs referenced which are 32bit.
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)
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
Re: version 7, gcc 64bit 0xc000007b
Posted: Mon Feb 09, 2015 2:55 pm
by nezos
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.
Re: version 7, gcc 64bit 0xc000007b
Posted: Mon Feb 09, 2015 3:15 pm
by eranif
You should add a resource file (if you don't have one yet)
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
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
Re: version 7, gcc 64bit 0xc000007b
Posted: Wed Feb 11, 2015 12:11 pm
by nezos
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!