User forums > Using Code::Blocks
Linker headache
(1/1)
Tjaalie:
Dear Thread reader,
I feel so stupit, I added one source file to my project and now I can't compile anymore :?
But when I removed the file from the project the error remained. I will post my build log below:
--- Quote ----------------- Build: Debug in Sea Wars ---------------
Compiling: ..\Src\GameBase.cpp
Compiling: ..\Src\Input.cpp
Compiling: ..\Src\Render.cpp
Compiling: ..\Src\Sea.cpp
Compiling: ..\Src\SkyBox.cpp
Compiling: ..\Src\Texture.cpp
Compiling: ..\Src\Window.cpp
Compiling: ..\Src\Game.cpp
Linking console executable: ..\..\..\Bin\Sea Wars_d.exe
collect2: ld returned 255 exit status
Process terminated with status 1 (0 minutes, 39 seconds)
0 errors, 0 warnings
--- End quote ---
I have no idea why he would return error status 255, I have googled my ass of to find the ld error codes and their descriptions but no luck. Can someone please help me with this?
Tjaalie,
Pecan:
I get a 255 when CB cannot find a program its looking for.
Check to make sure that CB knows where your linker is.
Settings=>Compiler&Debugger=> (tab)Programs
Tjaalie:
I fixed it, I needed to reinstall code blocks. I think becouse of they popup compiler selection box it changed some paths (I munaly installed mingw) and I was using multiple versions.
Navigation
[0] Message Index
Go to full version