Linking problems
Posted: Sat Jul 30, 2011 1:45 pm
Problem 1: library settings are not passed to the linker correctly.
To reproduce:
- create a new "Executable (G++)" project
- under "Project Settings -> Global Settings", enter several libraries (like "SDL GL GLU")
- build the project
The build will fail. This is an example build window output:
The command line
should read
Problem 2: Build errors are not detected. After any linker error, the Build tab shows "0 Errors, 0 Warnings", even though there was an error and the project has not been built. The Errors tab then shows "Build ended successfully". The "Run" command will try to start the executable after that.
Both are always reproducible. Tested with v2.10.4778 installed from Ubuntu repository as well as binaries built from SVN trunk (Revision 5008). Running Ubuntu 11.04 x86 32-bit.
To reproduce:
- create a new "Executable (G++)" project
- under "Project Settings -> Global Settings", enter several libraries (like "SDL GL GLU")
- build the project
The build will fail. This is an example build window output:
Code: Select all
----------Build Started--------
/bin/sh -c '"make" -j 2 -f "gridfire_wsp.mk"'
----------Building project:[ gridfire - Debug ]----------
make[1]: Entering directory `/home/johannes/code/tests/gridfire'
g++ -o ./Debug/gridfire ./Debug/main.o -L. -lSDL GL GLU
g++: GL: No such file or directory
g++: GLU: No such file or directory
make[1]: *** [Debug/gridfire] Error 1
make[1]: Leaving directory `/home/johannes/code/tests/gridfire'
make: *** [All] Error 2
----------Build Ended----------
0 errors, 0 warnings
Code: Select all
g++ -o ./Debug/gridfire ./Debug/main.o -L. -lSDL GL GLU
Code: Select all
g++ -o ./Debug/gridfire ./Debug/main.o -L. -lSDL -lGL -lGLU
Both are always reproducible. Tested with v2.10.4778 installed from Ubuntu repository as well as binaries built from SVN trunk (Revision 5008). Running Ubuntu 11.04 x86 32-bit.