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

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Installation and building / link error with static library linking in Linux

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.



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 Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!

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