News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Static linking in CB not working

Started by robertha, April 29, 2007, 07:16:18 PM

Previous topic - Next topic

robertha

Hello

I have a problem with linking. I link vs several libraries, which i have as static or dynamic libraries. I put them under Project->Build Options -> Linker Settings -> Link Libraries. If I insert /usr/lib64/libbz2.so, it is working, but if I take the static library /usr/lib64/libbz2.a, i get lots of for example "../../TerrainSDK/vtdata/libvtdata.so:: undefined reference to `BZ2_bzopen". What am i doing wrong?

I tried to just write libbz2, or bz2.a, but I can't get it working...

I'm using Code::Blocks svn 3816 on Fedora Core 6 x86_64. and the gnu compiler.

Thank you for your help