Hi,

I have been stuck with this linking error for a few days with a link error on 
on Mac OSX 10.6.3 with OSG 2.9.9 and Eclipse IDE, the compilation log is at the 
end of the post.

The code I'm trying to compile does work on an other pc with linux.

The compilation of OSG went well and I am using this script to set the 
environnement : 

Code:

#!/bin/bash

export OSGHOME=/Users/Flo//Dev/OpenSceneGraph-2.9.9
export PATH="${PATH}:${OSGHOME}/lib:${OSGHOME}/lib/osgPlugins:$OSGHOME/include"
export DYLD_LIBRARY_PATH="${OSGHOME}/lib:${OSGHOME}/lib/osgPlugins-2.9.9"
export OSG_FILE_PATH="${OSGHOME}/../OSG_data:${OSGHOME}/../OSG_data/Images"
export DYLD_BIND_AT_LAUNCH=1




I don't really get the problem as Eclipse find the libraries...

Thank you!

Cheers,
Florent


Code:
**** Build of configuration Release for project TpOSG ****

make all 
Building target: TpOSG
Invoking: MacOS X C++ Linker
g++ -L/Users/Flo/Dev/OpenSceneGraph-2.9.9/lib 
-L/Users/Flo/Dev/OpenSceneGraph-2.9.9/include 
-L/Users/Flo/Dev/OpenSceneGraph-2.9.9/lib/osgPlugins-2.9.9 -o "TpOSG"  ./main.o 
  
Undefined symbols:
  "vtable for osg::Capsule", referenced from:
      __co...@0 in main.o
  "typeinfo for osg::Referenced", referenced from:
      typeinfo for osg::Objectin main.o
  "osg::Referenced::~Referenced()", referenced from:
      osg::Object::~Object()in main.o
      osg::Object::~Object()in main.o
      osg::Object::~Object()in main.o
      osg::Object::~Object()in main.o
  "osg::Geode::Geode()", referenced from:
      _main in main.o
  "osgViewer::Viewer::Viewer()", referenced from:
      _main in main.o
  "OpenThreads::Atomic::operator--()", referenced from:
      _main in main.o
      _main in main.o
      _main in main.o
      _main in main.o
      _main in main.o
      _main in main.o
      _main in main.o
      _main in main.o
      osg::Object::~Object()in main.o
      osg::Object::~Object()in main.o
  "osg::Group::Group()", referenced from:
      _main in main.o
  "osgViewer::Viewer::run()", referenced from:
      _main in main.o
  "osg::Referenced::setThreadSafeRefUnref(bool)", referenced from:
      vtable for osg::Objectin main.o
  "osg::Referenced::signalObserversAndDelete(bool, bool) const", referenced 
from:
      _main in main.o
      _main in main.o
      _main in main.o
      _main in main.o
      _main in main.o
      _main in main.o
      _main in main.o
      _main in main.o
      osg::Object::~Object()in main.o
      osg::Object::~Object()in main.o
  "osg::ShapeDrawable::ShapeDrawable(osg::Shape*, osg::TessellationHints*)", 
referenced from:
      _main in main.o
  "osg::Referenced::Referenced()", referenced from:
      _main in main.o
  "osgViewer::Viewer::setSceneData(osg::Node*)", referenced from:
      _main in main.o
  "OpenThreads::Atomic::operator++()", referenced from:
      _main in main.o
      _main in main.o
      _main in main.o
      _main in main.o
  "osgViewer::Viewer::~Viewer()", referenced from:
      _main in main.o
      _main in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [TpOSG] Error 1


[/code]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=32621#32621





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to