×

Notice

The forum is in read only mode.

linking with salome libraries

  • Manav Bhatia
  • Topic Author
  • Offline
  • New Member
  • New Member
More
16 years 8 months ago #1843 by Manav Bhatia
linking with salome libraries was created by Manav Bhatia
Hi ,


I am trying to compile this very simple code with the med libraries of salome. I am using the latest 2008 release of salome-meca package on ubuntu.


********************************************************
// main.C

#include <iostream>

#include "MEDMEM_Med.hxx"

int main()
{

}
*********************************************************


I compile with


g++ -I. -I/home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/V3_2_9NoDebug/MED_V3_2_9NoDebug/include/salome -I/home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/prerequis/hdf5-1.6.4/include/ -I/home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/prerequis/med-2.3.1/include/ -I/home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/V3_2_9NoDebug/KERNEL_V3_2_9NoDebug/include/salome/ -DPCLINUX -g -O2 -c main.C -o main.o


and then link with

ld -g -O2 -L/home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/V3_2_9NoDebug/MED_V3_2_9NoDebug/lib/salome/ -rpath /home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/prerequis/CAS-6.2sp3/lin/lib -rpath /home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/prerequis/debianForSalome-v1_2_0/lib -rpath /home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/prerequis/hdf5-1.6.4/lib -rpath /home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/prerequis/med-2.3.1/lib -rpath /home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/prerequis/netgen4.5_CAS-6.2sp3/lib/LINUX -rpath /home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/prerequis/omniORB-4.0.7/lib -rpath /home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/prerequis/VTK-4.2.6/lib/vtk -rpath /home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/V3_2_9NoDebug/GUI_V3_2_9NoDebug/lib/salome -rpath /home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/V3_2_9NoDebug/HELLO1_V3_2_9NoDebug/lib/salome -rpath /home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/V3_2_9NoDebug/KERNEL_V3_2_9NoDebug/lib/salome -rpath /home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/V3_2_9NoDebug/MED_V3_2_9NoDebug/lib/salome -rpath /home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/V3_2_9NoDebug/NETGENPLUGIN_V3_2_9NoDebug/lib/salome -o GeometryProcessor main.o -lmedmem

which gives me the errors


ld: warning: cannot find entry symbol _start; defaulting to 00000000080489c0
GeometryProcessor-main.o: In function `__static_initialization_and_destruction_0':
/usr/include/c++/4.2/iostream:77: undefined reference to `__dso_handle'
GeometryProcessor-main.o: In function `__static_initialization_and_destruction_0':
/home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/V3_2_9NoDebug/MED_V3_2_9NoDebug/include/salome/MEDMEM_DriversDef.hxx:53: undefined reference to `__dso_handle'
/home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/V3_2_9NoDebug/MED_V3_2_9NoDebug/include/salome/MEDMEM_DriversDef.hxx:77: undefined reference to `__dso_handle'
/home/manav/packages/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/V3_2_9NoDebug/MED_V3_2_9NoDebug/include/salome/MEDMEM_DriversDef.hxx:108: undefined reference to `__dso_handle'



I have tried this with both gcc 3.4 and 4.2 on my system, and have not been able to get this to link.

I would greatly appreciate if you could help with this issue here.

Regards,
Manav<br /><br />Post edited by: Manav Bhatia, at: 2008/04/08 06:30
Moderators: catux
Time to create page: 0.107 seconds
Powered by Kunena Forum