Yet Another Linking error with CodeBlocks

theom3ga

08-09-2008 13:24:26

Hi there. I've tried everything to make this work but none seems to work.

I have Ogre 1.6, the last Newton SDK and OgreNewt. I managed to compile OgreNewt.dll and OgreNewt_d.dll with CodeBlocks following this post.

Now I'm trying to compile the first OgreNewt sample application. I added the Newton and OgreNewt libraries (as well as Ogre and OIS). The cpp files get compiled OK, but when it tries to link all the .o files, it fails. This is the command it executes:

mingw32-g++.exe -Lc:\OgreSDK_CB\lib -Lc:\OgreSDK_CB\bin\Debug -Lc:\OgreSDK_CB\bin\Release -L"C:\Archivos de programa\NewtonSDK\sdk\dll" -Lc:\OgreSDK_CB\ogreaddons\ogrenewt\dll -L"C:\Archivos de programa\CodeBlocks\lib" -o c:\OgreSDK_CB\bin\Release\proyecto.exe obj\Release\OgreNewtonFrameListener.o obj\Release\demo01.o obj\Release\OgreNewtonApplication.o -Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-image-base -Wl,--add-stdcall-alias -s -lOgreMain -lOIS -lNewton -lOgreNewt -mwindows


The path "c:\OgreSDK_CB\ogreaddons\ogrenewt\dll" is where I put the OgreNewt.dll and OgreNewt_d.dll files.

The errors it gives are all the same style, like:
obj\Release\OgreNewtonFrameListener.o:OgreNewtonFrameListener.cpp:(.text+0xbd8): undefined reference to `OgreNewt::CollisionPrimitives::Cylinder::Cylinder(OgreNewt::World const*, float, float, Ogre::Quaternion const&, Ogre::Vector3 const&)'

with everything in the OgreNewt namespace. I guess it may be a problem related with the OgreNewt dll, maybe I didn't compile it properly. I've tried to find a program in order to "browse" the exported symbols in the dll but I have found none.

How can I see if the dll was properly compiled? I'm becoming crazy!
Thanks in advance.