Author Topic: Linker headache  (Read 5503 times)

Offline Tjaalie

  • Multiple posting newcomer
  • *
  • Posts: 40
Linker headache
« on: December 19, 2006, 07:18:25 pm »
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

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,

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2775
Re: Linker headache
« Reply #1 on: December 19, 2006, 07:37:24 pm »
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

Offline Tjaalie

  • Multiple posting newcomer
  • *
  • Posts: 40
Re: Linker headache
« Reply #2 on: December 19, 2006, 08:28:05 pm »
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.