This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Undefined references in libstdc++ headers


> Can you post a self-contained testcase and the compile flags
> you are using so that others can reproduce this error?

Maybe.  I just unexpectedly encountered it during the linking stage of
an enormous 3D engine (http://www.ogre3d.org/), so I guess I can try
to pick out one of the .o files and send it, if you don't think that
will be a problem for the list.

> How is the final link being done?  Are you linking with the g++
> driver, rather than the gcc driver?  Are you sure you are linking
> against -lstdc++?

Yes, this is the line that builds the library:

g++ -shared  OgreGLATIFSInit.lo OgreGLEngineDll.lo OgreGLGpuProgram.lo
OgreGLGpuNvparseProgram.lo OgreGLGpuProgramManager.lo
OgreGLRenderSystem.lo OgreGLSupport.lo OgreGLTexture.lo
OgreGLTextureManager.lo OgreGLHardwareBufferManager.lo
OgreGLHardwareIndexBuffer.lo OgreGLHardwareOcclusionQuery.lo
OgreGLHardwareVertexBuffer.lo OgreGLHardwarePixelBuffer.lo
OgreGLDefaultHardwareBufferManager.lo OgreGLContext.lo
OgreGLPixelFormat.lo glprocs.lo -Wl,--whole-archive
../../../RenderSystems/GL/src/SDL/.libs/libsupport.al
../../../RenderSystems/GL/src/GLSL/src/.libs/libGLSL.al
../../../RenderSystems/GL/src/nvparse/.libs/libnvparse.al
../../../RenderSystems/GL/src/atifs/src/.libs/libatifs.al
-Wl,--no-whole-archive  -Wl,--rpath
-Wl,/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2 -Wl,--rpath
-Wl,/root/ogrenew/OgreMain/src/.libs -Wl,--rpath
-Wl,/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2 -Wl,--rpath
-Wl,/usr/local/lib -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2
-L/root/ogrenew/OgreMain/src
-L/var/tmp/portage/devil-1.6.7-r1/work/DevIL-1.6.7/src-IL/src
-L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib
-L/usr/lib/gcc-lib/../../i686-pc-linux-gnu/lib -L/usr/lib
-L/usr/X11R6/lib -lpng /usr/lib/libtiff.so /usr/lib/libjpeg.so
/usr/lib/liblcms.so
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.so -lgcc_s -lc
-lXext -lvga /usr/lib/libaa.so -lslang -lX11 /usr/lib/libGL.so
/usr/lib/libGLU.so /root/ogrenew/OgreMain/src/.libs/libOgreMain.so
-lCg /usr/lib/libILU.so /usr/lib/libIL.so -lz -lm -ldl
/usr/lib/libSDL.so -lpthread  -Wl,-z -Wl,defs -Wl,-rpath -Wl,/usr/lib
-Wl,-rpath -Wl,/usr/lib -Wl,-soname -Wl,RenderSystem_GL.so -o
.libs/RenderSystem_GL.so


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]