Linh,
At 15:25 30.03.01 -0800, Linh H Phan wrote:
Hi,
I finally got the libInventorXt.a and libInventor.a compiled on
SunOs 5.7
Congrats ;-)
but I am getting these undefined symbols in the
02.1.HelloCone example:
296 simcat> c++ -L/proj/sgi/Inventor/inventor/libSoXt
-L/proj/sgi/Inventor/inventor/lib -L/proj/sgi/Inventor/inventor/libFL/src
-L/usr/lib -L/proj/sgi/Inventor/jpeg-6b 02.1.HelloCone.o -lInventor
-lInventorXt -ljpeg -o 02.1.HelloCone -lGL -lGLU -lXm -lXt -lX11
-lFL -ldl -lm
Undefined first referenced
symbol in file
flMakeCurrentFont
/proj/sgi/Inventor/inventor/lib/libInventor.a(SoAsciiText.o)
SoSceneManager::setRenderCallback(void (*)(void *, SoSceneManager *), void
*)/proj/sgi/Inventor/inventor/libSoXt/libInventorXt.a(SoXtRendrArea.o)
SoSceneManager::reinitialize(void)
/proj/sgi/Inventor/inventor/libSoXt/libInventorXt.a(SoXtRendrArea.o)
iclose
/proj/sgi/Inventor/inventor/lib/libInventor.a(So.o)
sqrtf
/proj/sgi/Inventor/inventor/lib/libInventor.a(libNurbs.o)
I did include libFL.a. Do you know why I'm having these undefined symbols?
Use nm to see wether flMakeCurrentFont is included in libInventor.a or not.
(also use nm on libFL.a)
If libFL.a has troubles, try the libFL wrapper for freetype lib (see latest
cvs snapshot).
Based on that info you are able to resolve the problem.
maybe some functions are compiled as C++. you are able to identify this by
looking at the actual function
name (output by nm). if it is mangled you have to define C linage style.
iclose is part of the image library. Seems that it is not included in your
libInventor.a
(same problem with sqrtf. part of the standard math library. is -lm
included at the inventor link line?)
Again, nm is your friend.
Cheers,
Gerd
|