Re: Undefined symbol for OSX build

Rick Ashton <[email protected]>
Newsgroups gmane.comp.lib.ode
Message-ID <[email protected]>
Hi

Thanks, I gave that a try. It doesn't seem to list dsPrint, but does  
list a _dsError as undefined. What does the underscore notation denote?

Here's the make output:

> Making all in src
> source='drawstuff.cpp' object='libdrawstuff_a-drawstuff.o'  
> libtool=no \
> depfile='.deps/libdrawstuff_a-drawstuff.Po' tmpdepfile='.deps/ 
> libdrawstuff_a-drawstuff.TPo' \
> depmode=gcc3 /bin/sh ../../depcomp \
> g++ -DHAVE_CONFIG_H -I. -I. -I../../include/ode    -I../../include - 
> I../../include -g -O2 -I -L/usr/X11R6/lib -c -o libdrawstuff_a- 
> drawstuff.o `test -f 'drawstuff.cpp' || echo './'`drawstuff.cpp
> rm -f libdrawstuff.a
> ar cru libdrawstuff.a libdrawstuff_a-drawstuff.o
> ranlib libdrawstuff.a

and here's the entire nm output (sorry if long):

> libdrawstuff.a(libdrawstuff_a-drawstuff.o):
>          U __Unwind_Resume
> 0000287c T __Z11dsDrawFrameiiP11dsFunctionsi
> 00004f20 S __Z11dsDrawFrameiiP11dsFunctionsi.eh
> 0000310a T __Z12dsGetShadowsv
> 00000000 A __Z12dsGetShadowsv.eh
> 0000311a T __Z12dsSetShadowsi
> 00000000 A __Z12dsSetShadowsi.eh
> 00003134 T __Z13dsGetTexturesv
> 00000000 A __Z13dsGetTexturesv.eh
> 00003144 T __Z13dsSetTexturesi
> 00000000 A __Z13dsSetTexturesi.eh
> 0000253c T __Z14dsStopGraphicsv
> 00004ec0 S __Z14dsStopGraphicsv.eh
> 000023d4 T __Z15dsStartGraphicsiiP11dsFunctions
> 00004e90 S __Z15dsStartGraphicsiiP11dsFunctions.eh
>          U __Z17dsPlatformSimLoopiiP11dsFunctionsi
> 00002248 T __Z8dsMotioniii
> 00000000 A __Z8dsMotioniii.eh
> 00000330 T __ZN5ImageC1EPc
> 00004b70 S __ZN5ImageC1EPc.eh
> 00000178 T __ZN5ImageC2EPc
> 00004b40 S __ZN5ImageC2EPc.eh
> 00000500 T __ZN5ImageD1Ev
> 00000000 A __ZN5ImageD1Ev.eh
> 000004e8 T __ZN5ImageD2Ev
> 00000000 A __ZN5ImageD2Ev.eh
> 00000722 T __ZN7Texture4bindEi
> 00004c30 S __ZN7Texture4bindEi.eh
> 00000518 T __ZN7TextureC1EPc
> 00004ba0 S __ZN7TextureC1EPc.eh
> 00004350 T __ZN7TextureC2EPc
> 00005350 S __ZN7TextureC2EPc.eh
> 000006e6 T __ZN7TextureD1Ev
> 00004c00 S __ZN7TextureD1Ev.eh
> 000006aa T __ZN7TextureD2Ev
> 00004bd0 S __ZN7TextureD2Ev.eh
>          U __ZdaPv
>          U __ZdlPv
>          U __Znam
>          U __Znwm
>          U ___cxa_guard_acquire
>          U ___cxa_guard_release
>          U ___gxx_personality_v0
> 000054e6 S ___i686.get_pc_thunk.bx
> 000054e2 S ___i686.get_pc_thunk.cx
>          U _cos
>          U _cosf
>          U _dsDebug
> 00003840 T _dsDrawBox
> 000050c0 S _dsDrawBox.eh
> 00003ef2 T _dsDrawBoxD
> 00005210 S _dsDrawBoxD.eh
> 00003d76 T _dsDrawCapsule
> 000051b0 S _dsDrawCapsule.eh
> 00004272 T _dsDrawCapsuleD
> 000052f8 S _dsDrawCapsuleD.eh
> 000038ee T _dsDrawConvex
> 000050f0 S _dsDrawConvex.eh
> 00003f68 T _dsDrawConvexD
> 00005240 S _dsDrawConvexD.eh
> 00003c9a T _dsDrawCylinder
> 00005180 S _dsDrawCylinder.eh
> 00004210 T _dsDrawCylinderD
> 000052cc S _dsDrawCylinderD.eh
> 00003e4a T _dsDrawLine
> 000051e0 S _dsDrawLine.eh
> 000042d4 T _dsDrawLineD
> 00005324 S _dsDrawLineD.eh
> 000039e0 T _dsDrawSphere
> 00005120 S _dsDrawSphere.eh
> 0000405a T _dsDrawSphereD
> 00005270 S _dsDrawSphereD.eh
> 00003b82 T _dsDrawTriangle
> 00005150 S _dsDrawTriangle.eh
> 000040b6 T _dsDrawTriangleD
> 0000529c S _dsDrawTriangleD.eh
>          U _dsError
> 00003700 T _dsGetViewpoint
> 0000500c S _dsGetViewpoint.eh
> 0000433c T _dsSetCapsuleQuality
> 00000000 A _dsSetCapsuleQuality.eh
> 000037a4 T _dsSetColor
> 00005068 S _dsSetColor.eh
> 000037f2 T _dsSetColorAlpha
> 00005094 S _dsSetColorAlpha.eh
> 00004328 T _dsSetSphereQuality
> 00000000 A _dsSetSphereQuality.eh
> 00003772 T _dsSetTexture
> 0000503c S _dsSetTexture.eh
> 00003682 T _dsSetViewpoint
> 00004fdc S _dsSetViewpoint.eh
> 0000348c T _dsSimulationLoop
> 00004fac S _dsSimulationLoop.eh
>          U _fclose
>          U _fgetc
>          U _fopen
>          U _fread
>          U _glBegin
>          U _glBindTexture
>          U _glBlendFunc
>          U _glCallList
>          U _glClear
>          U _glClearColor
>          U _glColor3f
>          U _glCullFace
>          U _glDeleteTextures
>          U _glDepthFunc
>          U _glDepthRange
>          U _glDisable
>          U _glEnable
>          U _glEnd
>          U _glEndList
>          U _glFrontFace
>          U _glFrustum
>          U _glGenLists
>          U _glGenTextures
>          U _glLightfv
>          U _glLineWidth
>          U _glLoadIdentity
>          U _glMaterialf
>          U _glMaterialfv
>          U _glMatrixMode
>          U _glMultMatrixd
>          U _glMultMatrixf
>          U _glNewList
>          U _glNormal3d
>          U _glNormal3f
>          U _glNormal3fv
>          U _glPixelStorei
>          U _glPopMatrix
>          U _glPushMatrix
>          U _glRotatef
>          U _glScaled
>          U _glShadeModel
>          U _glTexCoord2f
>          U _glTexEnvf
>          U _glTexEnvi
>          U _glTexGenfv
>          U _glTexGeni
>          U _glTexParameterf
>          U _glTranslatef
>          U _glVertex3d
>          U _glVertex3dv
>          U _glVertex3f
>          U _glVertex3fv
>          U _glViewport
>          U _gluBuild2DMipmaps
>          U _sin
>          U _sinf
>          U _strcpy
>          U _ungetc


Thanks a lot!
Rick


On 15 Sep 2007, at 23:39 , Bram Stolk wrote:

> dsPrint resides in drawstuff/src/osx.cpp
> Does make in drawstuff/src dir builds the libdrawstuff_a-osx.o file  
> for you?
> This should be then archived in the libdrawstuff.a file.
>
> So you should see the symbol in .a, which you can test with:
>
> bram@c552:~/src/ode-0.8.1-rc1/drawstuff/src$ nm -g libdrawstuff.a   
> | grep dsPrint
> 00000380 T dsPrint
>
>   Bram
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.