Unresolved external error in ogre-newton example

toroth

29-04-2010 23:51:26

Hi!
I'm trying to run a OgreNewt example.
But...this is a problem that is blocking my project to run:


1>OgreNewtonApplication.obj : error LNK2001: unresolved external symbol "public: __thiscall OgreNewt::World::World(float,int)" (??0World@OgreNewt@@QAE@MH@Z)


I have added all includes and libraries in project perfectly.
What can be this error and how to solve it one time for all?

kallaspriit

01-05-2010 12:00:42

Try clean rebuild and make sure you have replaced the dll's.

toroth

01-05-2010 23:09:57

ok kallaspriit.

I have 2 dll files in project
newton.dll and OgreNewt.dll

And they are in the right folders.

But the problem is in this files dll?

toroth

01-05-2010 23:11:43

another think is I found this stranger instrutions in class:

_OgreNewtExport


This can be the problem?
because in the class with this _OgreNewtExport is the exactly place of the problem above.


namespace OgreNewt
{
class _OgreNewtExport World
{
public:
World(Ogre::Real desiredFps = 100.0f, int maxUpdatesPerFrames = 5);



but I don't know how to fix.

kallaspriit

02-05-2010 19:58:07

The _OgreNewtExport is needed there and not to blame. Did you rebuild OgreNewt and your app?

toroth

04-05-2010 00:11:47

yes kallaspriit is cleaned and rebuilded. but the problem still happening.
I tried to remove this comand _OgreNewtExport. nothings change. But I think that is important to use dll files.

I compare this class with error with other classes that working well. And I discovered that have no error in the codes. Absolutily nothing.

So my conclusion are that the libraries of OgreNewt isnt the best version to works with my vc 2008 or mainly my newton version.

kallaspriit

06-05-2010 20:50:16

Get the latest OgreNewt from SVN and hit compile, it should work just fine