Very dummie help

Bruno Duarte
Posts: 12
Joined: Mon Sep 03, 2007 3:32 pm

Very dummie help

Post by Bruno Duarte »

I need a very dummie help, i am trying to create a project in the Visual Studio and use Bullet Physics but i can't.

I have used the solution wksbullet.sln, and modifying then but i can't create a brand new one, like that someone could help me, does anybody can make a litle project and give to me :oops: , i received a lot of unresolved external.

I apreciate if someone can help me
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Very dummie help

Post by Erwin Coumans »

What unresolved symbols do you get?

If they are Bullet related, make sure you include all Bullet files in your project, or if you include the existing Bullet projectfiles, make sure to setup dependencies correct.
Also make sure that the run-time library matches for each project (Project/Properties/C++/Code Generation/run-time library)

Hope this helps,
Erwin
Bruno Duarte
Posts: 12
Joined: Mon Sep 03, 2007 3:32 pm

Re: Very dummie help

Post by Bruno Duarte »

I have this log file when i compile

------ Build started: Project: 3DS Loader, Configuration: Debug Win32 ------
Linking...
Main.obj : error LNK2019: unresolved external symbol "public: void __thiscall DemoApplication::setCameraDistance(float)" (?setCameraDistance@DemoApplication@@QAEXM@Z) referenced in function "unsigned int __cdecl MainLoop(void)" (?MainLoop@@YAIXZ)
Main.obj : error LNK2019: unresolved external symbol "public: void __thiscall Basic::initPhysics(void)" (?initPhysics@Basic@@QAEXXZ) referenced in function "unsigned int __cdecl MainLoop(void)" (?MainLoop@@YAIXZ)
Main.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall DemoApplication::~DemoApplication(void)" (??1DemoApplication@@UAE@XZ) referenced in function __unwindfunclet$??0Basic@@QAE@XZ$0
Main.obj : error LNK2019: unresolved external symbol "public: __thiscall DemoApplication::DemoApplication(void)" (??0DemoApplication@@QAE@XZ) referenced in function "public: __thiscall Basic::Basic(void)" (??0Basic@@QAE@XZ)
Main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall DemoApplication::updateCamera(void)" (?updateCamera@DemoApplication@@UAEXXZ)
Main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Basic::clientMoveAndDisplay(void)" (?clientMoveAndDisplay@Basic@@UAEXXZ)
Main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall DemoApplication::clientResetScene(void)" (?clientResetScene@DemoApplication@@UAEXXZ)
Main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall DemoApplication::keyboardCallback(unsigned char,int,int)" (?keyboardCallback@DemoApplication@@UAEXEHH@Z)
Main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall DemoApplication::specialKeyboard(int,int,int)" (?specialKeyboard@DemoApplication@@UAEXHHH@Z)
Main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall DemoApplication::specialKeyboardUp(int,int,int)" (?specialKeyboardUp@DemoApplication@@UAEXHHH@Z)
Main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall DemoApplication::reshape(int,int)" (?reshape@DemoApplication@@UAEXHH@Z)
Main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall DemoApplication::mouseFunc(int,int,int,int)" (?mouseFunc@DemoApplication@@UAEXHHHH@Z)
Main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall DemoApplication::mouseMotionFunc(int,int)" (?mouseMotionFunc@DemoApplication@@UAEXHH@Z)
Main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Basic::displayCallback(void)" (?displayCallback@Basic@@UAEXXZ)
Main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall DemoApplication::renderme(void)" (?renderme@DemoApplication@@UAEXXZ)
Main.obj : error LNK2019: unresolved external symbol "void __cdecl btAlignedFree(void *)" (?btAlignedFree@@YAXPAX@Z) referenced in function "public: void __thiscall btAlignedAllocator<class btCollisionShape *,16>::deallocate(class btCollisionShape * *)" (?deallocate@?$btAlignedAllocator@PAVbtCollisionShape@@$0BA@@@QAEXPAPAVbtCollisionShape@@@Z)
Main.obj : error LNK2019: unresolved external symbol "public: __thiscall GLDebugDrawer::GLDebugDrawer(void)" (??0GLDebugDrawer@@QAE@XZ) referenced in function "void __cdecl `dynamic initializer for 'debugDrawer''(void)" (??__EdebugDrawer@@YAXXZ)
.\Debug/3DS Loader.exe : fatal error LNK1120: 17 unresolved externals
Build log was saved at "file://c:\Documents and Settings\Administrador\Meus documentos\Visual Studio 2005\Projects\Bullet\Bullet_T3\Debug\BuildLog.htm"
3DS Loader - 18 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Bruno Duarte
Posts: 12
Joined: Mon Sep 03, 2007 3:32 pm

Re: Very dummie help

Post by Bruno Duarte »

I told you that it was a dummie problem, i resolved today, i forgot to include the lib files in the prooject