Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics

link error with static library linking in Linux

link error with static library linking in Linux
UlikeM 2010/04/22 11:00

i compiled source code of OCC in unix system.

With --enable-static configure option, not only shared libraries (*.so.0.0.0) but also static libraries ( *.a suffix ) is successfully obtained.

but linking error erupted when i use the libraries.

followings are my command for linking


g++ -static $(DEFINES) -I/home/(include paht) \
-L/home/(library path) \
/(library path)/libBinLPlugin.a \
/(library path)/libBinTObjPlugin.a \
/(library path)/libBinXCAFPlugin.a \
/(library path)/libPTKernel.a \

main.cpp -o test


/tmp/cc9jhThp.o: In function `main':
main.cpp:(.text+0x3fe): undefined reference to `gce_MakePln::gce_MakePln(gp_Pnt const&, gp_Dir const&)'

(errors continue....)


Though i declared all the static libraries, it dosen't seems that libraries are linked.

is there anyone can help me ?

thanks in advance.

UlikeM 2010/04/22 11:16
i successfully linked shared libraries. but the static libraries have a problem.

please anyone help me.
Latest news
  • Open CASCADE CAD Assistant for iOS platform is available!
  • Open CASCADE Technology 6.9.0 is available for download!
  • JT Assistant for Android

  • © OPEN CASCADE 2000 - 2015  |  Search  |  Contacts   |  Site map