Author Topic: Static linking in CB not working  (Read 2857 times)

Offline robertha

  • Single posting newcomer
  • *
  • Posts: 3
Static linking in CB not working
« on: April 29, 2007, 07:16:18 pm »
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