User forums > Using Code::Blocks
[SOLVED] dynamic versus static linking
TDragon:
Supply the full filename "libopenglut.a" (or "libopenglut.la").
Andy:
i am sorry if i am missing something but that does not seem to work. if i change the name of the library in the build options to libopenglut.a, the command-line produced by c::b does not change (it is the same as with openglut and so the link is dynamic):
g++ -L/usr/local/lib -L/usr/lib -o SiSi .objs/main.o -lhistory -lreadline -lGL -lGLU -lopenglut
if i put in openglut.a, i get a linker error:
cannot find -lopenglut.a
TDragon:
Oops...make it a fully-qualified path. (/usr/local/lib/libopenglut.a)
And submit a feature request. Rather, a feature-removal request (don't automatically translate full library names to -l versions).
Andy:
great, this works exactly as i wanted. just one last thing - how do i submit a feature request properly? i am kind of new here :)
TDragon:
If you have or are willing to sign up for an account at BerliOS, you can follow the "Ftr Requests" link from the lower left of the Code::Blocks home page. If not, make a noise on an appropriate board here in the C::B forums or hit mandrav with an email (these are less reliable than an official feature request).
However you do it, be descriptive about what led you to this point, how it's causing you a problem, and what your recommendation for a fix would be.
Cheers,
JohnE / TDragon
Navigation
[0] Message Index
[*] Previous page
Go to full version