Wierd behaviour when trying to link a dynamic lib
Posted: Mon Oct 25, 2010 2:37 pm
Hello all.
I am using Codelite on Ubuntu 10.04 version 2.7.0.4375
When I specify a library to link in the project setting dialog (right clicking on the workspace view on the left, selecting settings from the menu, then selecting the linker tag in the dialog and writing SDL in the library field) and then rebuild and compile the project, for some reason the SDL string I specified in the project settings dialog's library tab ends up manifesting itself as -lSDLSDL at compile time ... now that can't be right.
The actual call to the compiler being:
I'll post a workaround if I find one. By the way - the IDE itself is SUPER!!! Thank you!
Now if there only were a way to specify a costum library to link without the library name ending up repeating it twice when passed as an argument after -l
I am using Codelite on Ubuntu 10.04 version 2.7.0.4375
When I specify a library to link in the project setting dialog (right clicking on the workspace view on the left, selecting settings from the menu, then selecting the linker tag in the dialog and writing SDL in the library field) and then rebuild and compile the project, for some reason the SDL string I specified in the project settings dialog's library tab ends up manifesting itself as -lSDLSDL at compile time ... now that can't be right.
The actual call to the compiler being:
Code: Select all
g++ -o ./Debug/libsdl_template ./Debug/main.o ./Debug/sdl_screen.o ./Debug/sdl_app.o -lSDLSDL
/usr/bin/ld: cannot find -lSDLSDL
Now if there only were a way to specify a costum library to link without the library name ending up repeating it twice when passed as an argument after -l