unresolved external symbol

Get answers to all your basic programming questions. No Ogre questions, please!
LCY
Gnoblar
Posts: 10
Joined: Mon Jan 10, 2005 3:54 pm

unresolved external symbol

Post by LCY »

hi i new to ogre
when i compiler the program comes out the message

c:\ogre\ogrenew\Samples\Common\include\ExampleFrameListener.h(79): warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data
ogreexample error LNK2019: unresolved external symbol "__declspec(dllimport) private: void * __thiscall Ogre::MemoryManager::op_new_sc(unsigned int,unsigned int)" (__imp_?op_new_sc@MemoryManager@Ogre@@AAEPAXII@Z) referenced in function "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
ogreexample error LNK2019: unresolved external symbol "__declspec(dllimport) private: unsigned int __thiscall Ogre::MemoryManager::_getProcessID(void)" (__imp_?_getProcessID@MemoryManager@Ogre@@AAEIXZ) referenced in function "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
ogreexample error LNK2019: unresolved external symbol "__declspec(dllimport) private: void __thiscall Ogre::MemoryManager::op_del_sc(void *,unsigned int)" (__imp_?op_del_sc@MemoryManager@Ogre@@AAEXPAXI@Z) referenced in function "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
ogreexample error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall Ogre::MemoryManager::setOwner(char const *,unsigned int,char const *)" (__imp_?setOwner@MemoryManager@Ogre@@QAEXPBDI0@Z) referenced in function "protected: virtual bool __thiscall ExampleApplication::setup(void)" (?setup@ExampleApplication@@MAE_NXZ)
ogreexample fatal error LNK1120: 4 unresolved externals
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8

Post by haffax »

Looks, like you try to link a debug build application against a release built ogremain.dll. Make sure, that you link your debug build against ogremain_d.lib.

If you need further instructions, please provide more informations about what you're trying to accomplish.
team-pantheon programmer
creators of Rastullahs Lockenpracht
User avatar
Emmeran
Goblin
Posts: 272
Joined: Wed Jun 02, 2004 11:47 am
Location: Erlangen

Post by Emmeran »

I think you have to set the c++ options in project settings -> c++ --> code generation ---> runtime libary to multithreaded-dll debuging