Using Codelite with TDM 64ccg bundle
Posted: Mon Apr 21, 2014 10:03 pm
Hello,
I have just downloadet the TDM64gcc bundle and installed it.
Next I edited the registry file in the Codelite directory to point mingw to the TDM64gcc directory (not the bin)
To be sure I also added the bin path to my system path.
As all tool names are the same I don't edited them under Settings->Build->tools
The mingw32-make tool name is also the same and I don't had to change anything. I can call the make tool from my cmd.
I get this error log if I build the standard hello world program:
I should mention that I don't have to set the -m64 compiler flag as its 64bit on default with this tool chain.
Also if I add the -m32 option to my compiler and my linker the build is successful. Its a 64 bit problem but I don't know where to start looking.
Maybe someone an idea.
I use Win8 64bit
Codelite 5.4
I have just downloadet the TDM64gcc bundle and installed it.
Next I edited the registry file in the Codelite directory to point mingw to the TDM64gcc directory (not the bin)
To be sure I also added the bin path to my system path.
As all tool names are the same I don't edited them under Settings->Build->tools
The mingw32-make tool name is also the same and I don't had to change anything. I can call the make tool from my cmd.
I get this error log if I build the standard hello world program:
Its the popular "undefined reference" error.C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 4 -e -f Makefile"
"----------Building project:[ test1 - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'C:/Users/Ghost/Documents/CodeLiteWorkspace/test1'
g++ -o ./Debug/test1 @"test1.txt" -L.
c:/workstation/tdm_gcc64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: i386 architecture of input file `./Debug/main.o' is incompatible with i386:x86-64 output
./Debug/main.o: In function `main':
C:/Users/Ghost/Documents/CodeLiteWorkspace/test1/main.cpp:7: undefined reference to `___main'
C:/Users/Ghost/Documents/CodeLiteWorkspace/test1/main.cpp:8: undefined reference to `_puts'
c:/workstation/tdm_gcc64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o): In function `main':
h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crt0_c.c:18: undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [Debug/test1] Error 1
mingw32-make.exe: *** [All] Error 2
test1.mk:79: recipe for target 'Debug/test1' failed
mingw32-make.exe[1]: Leaving directory 'C:/Users/Ghost/Documents/CodeLiteWorkspace/test1'
Makefile:4: recipe for target 'All' failed
3 errors, 0 warnings
I should mention that I don't have to set the -m64 compiler flag as its 64bit on default with this tool chain.
Also if I add the -m32 option to my compiler and my linker the build is successful. Its a 64 bit problem but I don't know where to start looking.
Maybe someone an idea.
I use Win8 64bit
Codelite 5.4