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
Hi,

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



=================================result=================================

/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.



 
 
Latest news
  • OCCT Applications
  • Open CASCADE Technology 6.8.0 is available for download!
  • New features to enhance the development process

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