Jump to content

  • Log In with Google      Sign In   
  • Create Account


PhysX unresolved externals errors


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 noatom   Members   -  Reputation: 782

Like
0Likes
Like

Posted 07 July 2012 - 05:08 PM

Ok,I don't have any ideea why these errors appear,I mean I linked everything...Anyway,these are the errors,if anybody has an ideea how to fix them,please tell...

1>SampleHelloWorld.obj : error LNK2019: unresolved external symbol "public: __thiscall SampleRenderer::RendererColor::RendererColor(unsigned char,unsigned char,unsigned char,unsigned char)" (??0RendererColor@SampleRenderer@@QAE@EEEE@Z) referenced in function "public: virtual void __thiscall SampleHelloWorld::descriptionRender(unsigned int,unsigned int,unsigned char)" (?descriptionRender@SampleHelloWorld@@UAEXIIE@Z)
1>SampleHelloWorld.obj : error LNK2019: unresolved external symbol "public: void __thiscall SampleRenderer::Renderer::print(unsigned int,unsigned int,char const *,float,float,class SampleRenderer::RendererColor)" (?print@Renderer@SampleRenderer@@QAEXIIPBDMMVRendererColor@2@@Z) referenced in function "public: virtual void __thiscall SampleHelloWorld::descriptionRender(unsigned int,unsigned int,unsigned char)" (?descriptionRender@SampleHelloWorld@@UAEXIIE@Z)
1>SampleHelloWorld.obj : error LNK2019: unresolved external symbol "class PxSampleAllocator * __cdecl getSampleAllocator(void)" (?getSampleAllocator@@YAPAVPxSampleAllocator@@XZ) referenced in function "public: static void * __cdecl SampleAllocateable::operator new(unsigned int,char const *,char const *,int)" (??2SampleAllocateable@@SAPAXIPBD0H@Z)
1>SampleHelloWorld.obj : error LNK2019: unresolved external symbol "public: void __thiscall DefaultCameraController::init(class physx::PxVec3 const &,class physx::PxVec3 const &)" (?init@DefaultCameraController@@QAEXABVPxVec3@physx@@0@Z) referenced in function "public: virtual void __thiscall SampleHelloWorld::onInit(void)" (?onInit@SampleHelloWorld@@UAEXXZ)
1>SampleHelloWorld.obj : error LNK2019: unresolved external symbol "public: void __thiscall PhysXSampleApplication::setMouseCursorHiding(bool)" (?setMouseCursorHiding@PhysXSampleApplication@@QAEX_N@Z) referenced in function "public: virtual void __thiscall SampleHelloWorld::onInit(void)" (?onInit@SampleHelloWorld@@UAEXXZ)
1>SampleHelloWorld.obj : error LNK2019: unresolved external symbol "public: void __thiscall PhysXSampleApplication::setMouseCursorRecentering(bool)" (?setMouseCursorRecentering@PhysXSampleApplication@@QAEX_N@Z) referenced in function "public: virtual void __thiscall SampleHelloWorld::onInit(void)" (?onInit@SampleHelloWorld@@UAEXXZ)
1>SampleHelloWorld.obj : error LNK2019: unresolved external symbol "public: char const * __thiscall PhysXSampleApplication::inputInfoMsg(char const *,char const *,int,int)" (?inputInfoMsg@PhysXSampleApplication@@QAEPBDPBD0HH@Z) referenced in function "public: virtual void __thiscall SampleHelloWorld::helpRender(unsigned int,unsigned int,unsigned char)" (?helpRender@SampleHelloWorld@@UAEXIIE@Z)
1>SampleHelloWorld.obj : error LNK2019: unresolved external symbol "public: char const * __thiscall PhysXSampleApplication::inputMoveInfoMsg(char const *,char const *,int,int,int,int)" (?inputMoveInfoMsg@PhysXSampleApplication@@QAEPBDPBD0HHHH@Z) referenced in function "public: virtual void __thiscall SampleHelloWorld::helpRender(unsigned int,unsigned int,unsigned char)" (?helpRender@SampleHelloWorld@@UAEXIIE@Z)
1>SampleHelloWorld.obj : error LNK2019: unresolved external symbol "protected: static class Test::TestGroup & __cdecl PhysXSampleApplication::getSampleTreeRoot(void)" (?getSampleTreeRoot@PhysXSampleApplication@@KAAAVTestGroup@Test@@XZ) referenced in function "public: static bool __cdecl PhysXSampleApplication::registerSample(class PhysXSampleCreator *,char const *)" (?registerSample@PhysXSampleApplication@@SA_NPAVPhysXSampleCreator@@PBD@Z)
1>SampleHelloWorld.obj : error LNK2019: unresolved external symbol "protected: static bool __cdecl PhysXSampleApplication::addSample(class Test::TestGroup &,class PhysXSampleCreator *,char const *)" (?addSample@PhysXSampleApplication@@KA_NAAVTestGroup@Test@@PAVPhysXSampleCreator@@PBD@Z) referenced in function "public: static bool __cdecl PhysXSampleApplication::registerSample(class PhysXSampleCreator *,char const *)" (?registerSample@PhysXSampleApplication@@SA_NPAVPhysXSampleCreator@@PBD@Z)
1>SampleHelloWorld.obj : error LNK2019: unresolved external symbol "public: __thiscall PhysXSample::PhysXSample(class PhysXSampleApplication &,unsigned int)" (??0PhysXSample@@QAE@AAVPhysXSampleApplication@@I@Z) referenced in function "public: __thiscall SampleHelloWorld::SampleHelloWorld(class PhysXSampleApplication &)" (??0SampleHelloWorld@@QAE@AAVPhysXSampleApplication@@@Z)
1>SampleHelloWorld.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall PhysXSample::~PhysXSample(void)" (??1PhysXSample@@UAE@XZ) referenced in function "public: virtual __thiscall SampleHelloWorld::~SampleHelloWorld(void)" (??1SampleHelloWorld@@UAE@XZ)
1>SampleHelloWorld.obj : error LNK2019: unresolved external symbol "public: virtual void __thiscall PhysXSample::onInit(void)" (?onInit@PhysXSample@@UAEXXZ) referenced in function "public: virtual void __thiscall SampleHelloWorld::onInit(void)" (?onInit@SampleHelloWorld@@UAEXXZ)
1>SampleHelloWorld.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall PhysXSample::onShutdown(void)" (?onShutdown@PhysXSample@@UAEXXZ)
1>SampleHelloWorld.obj : error LNK2019: unresolved external symbol "public: virtual void __thiscall PhysXSample::onTickPreRender(float)" (?onTickPreRender@PhysXSample@@UAEXM@Z) referenced in function "public: virtual void __thiscall SampleHelloWorld::onTickPreRender(float)" (?onTickPreRender@SampleHelloWorld@@UAEXM@Z)
1>SampleHelloWorld.obj : error LNK2019: unresolved external symbol "public: virtual void __thiscall PhysXSample::onTickPostRender(float)" (?onTickPostRender@PhysXSample@@UAEXM@Z) referenced in function "public: virtual void __thiscall SampleHelloWorld::onTickPostRender(float)" (?onTickPostRender@SampleHelloWorld@@UAEXM@Z)
1>SampleHelloWorld.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall PhysXSample::onAnalogInputEvent(struct SampleFramework::InputEvent const &,float)" (?onAnalogInputEvent@PhysXSample@@UAEXABUInputEvent@SampleFramework@@M@Z)
1>SampleHelloWorld.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall PhysXSample::onDigitalInputEvent(struct SampleFramework::InputEvent const &,bool)" (?onDigitalInputEvent@PhysXSample@@UAE_NABUInputEvent@SampleFramework@@_N@Z)
1>SampleHelloWorld.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall PhysXSample::onPointerInputEvent(struct SampleFramework::InputEvent const &,unsigned int,unsigned int,float,float,bool)" (?onPointerInputEvent@PhysXSample@@UAEXABUInputEvent@SampleFramework@@IIMM_N@Z)
1>SampleHelloWorld.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall PhysXSample::onKeyDownEx(enum SampleFramework::SampleUserInput::KeyCode,unsigned int)" (?onKeyDownEx@PhysXSample@@UAEXW4KeyCode@SampleUserInput@SampleFramework@@I@Z)
1>SampleHelloWorld.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall PhysXSample::onResize(unsigned int,unsigned int)" (?onResize@PhysXSample@@UAEXII@Z)
1>SampleHelloWorld.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall PhysXSample::newMaterial(class RAWMaterial const &)" (?newMaterial@PhysXSample@@UAEXABVRAWMaterial@@@Z)
1>SampleHelloWorld.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall PhysXSample::newShape(class RAWShape const &)" (?newShape@PhysXSample@@UAEXABVRAWShape@@@Z)
1>SampleHelloWorld.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall PhysXSample::newHelper(class RAWHelper const &)" (?newHelper@PhysXSample@@UAEXABVRAWHelper@@@Z)
1>SampleHelloWorld.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall PhysXSample::newTexture(class RAWTexture const &)" (?newTexture@PhysXSample@@UAEXABVRAWTexture@@@Z)
1>SampleHelloWorld.obj : error LNK2019: unresolved external symbol "public: virtual void __thiscall PhysXSample::collectInputEvents(class std::vector<struct SampleFramework::InputEvent const *,class std::allocator<struct SampleFramework::InputEvent const *> > &)" (?collectInputEvents@PhysXSample@@UAEXAAV?$vector@PBUInputEvent@SampleFramework@@V?$allocator@PBUInputEvent@SampleFramework@@@std@@@std@@@Z) referenced in function "public: virtual void __thiscall SampleHelloWorld::collectInputEvents(class std::vector<struct SampleFramework::InputEvent const *,class std::allocator<struct SampleFramework::InputEvent const *> > &)" (?collectInputEvents@SampleHelloWorld@@UAEXAAV?$vector@PBUInputEvent@SampleFramework@@V?$allocator@PBUInputEvent@SampleFramework@@@std@@@std@@@Z)
1>SampleHelloWorld.obj : error LNK2001: unresolved external symbol "public: virtual class SampleFramework::SampleDirManager & __thiscall PhysXSample::getSampleOutputDirManager(void)" (?getSampleOutputDirManager@PhysXSample@@UAEAAVSampleDirManager@SampleFramework@@XZ)
1>SampleHelloWorld.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall PhysXSample::onPvdConnected(class physx::debugger::comm::PvdConnection &)" (?onPvdConnected@PhysXSample@@EAEXAAVPvdConnection@comm@debugger@physx@@@Z)
1>SampleHelloWorld.obj : error LNK2001: unresolved external symbol "private: virtual void __thiscall PhysXSample::onPvdDisconnected(class physx::debugger::comm::PvdConnection &)" (?onPvdDisconnected@PhysXSample@@EAEXAAVPvdConnection@comm@debugger@physx@@@Z)
1>SampleHelloWorld.obj : error LNK2019: unresolved external symbol "public: void __thiscall Console::out(char const *)" (?out@Console@@QAEXPBD@Z) referenced in function "void __cdecl gExport(class Console *,char const *,void *)" (?gExport@@YAXPAVConsole@@PBDPAX@Z)
1>SampleHelloWorld.obj : error LNK2019: unresolved external symbol "public: void __thiscall Console::addCmd(char const *,void (__cdecl*)(class Console *,char const *,void *))" (?addCmd@Console@@QAEXPBDP6AXPAV1@0PAX@Z@Z) referenced in function "public: virtual void __thiscall SampleHelloWorld::onInit(void)" (?onInit@SampleHelloWorld@@UAEXXZ)
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>..\Bin\win32\physx_hel


Sponsor:

#2 ApochPiQ   Moderators   -  Reputation: 14666

Like
0Likes
Like

Posted 07 July 2012 - 09:08 PM

You're most likely missing a .lib in your linker settings, or you're dealing with a busted project file. What do your linker inputs look like?

#3 Muzzy A   Members   -  Reputation: 623

Like
0Likes
Like

Posted 08 July 2012 - 12:46 AM

or possibly you dont have a file included in the project that should be, happens to me sometimes.

#4 noatom   Members   -  Reputation: 782

Like
0Likes
Like

Posted 08 July 2012 - 03:32 AM

[source lang="cpp"]PhysX3_x86.libPhysX3CharacterKinematic_x86.libPhysX3CharacterKinematicCHECKED_x86.libPhysX3CharacterKinematicPROFILE_x86.libPhysX3CHECKED_x86.libPhysX3Common_x86.libPhysX3CommonCHECKED_x86.libPhysX3CommonDEBUG_x86.libPhysX3CommonPROFILE_x86.libPhysX3Cooking_x86.libPhysX3CookingCHECKED_x86.libPhysX3CookingPROFILE_x86.libPhysX3Extensions.libPhysX3ExtensionsCHECKED.libPhysX3ExtensionsPROFILE.libPhysX3PROFILE_x86.libPhysX3Vehicle.libPhysX3VehicleCHECKED.libPhysX3VehiclePROFILE.libPhysXProfileSDK.libPhysXProfileSDKCHECKED.libPhysXProfileSDKPROFILE.libPhysXVisualDebuggerSDK.libPhysXVisualDebuggerSDKCHECKED.libPhysXVisualDebuggerSDKPROFILE.libPxTask.libPxTaskCHECKED.libPxTaskPROFILE.libRepX3.libRepX3CHECKED.libRepX3PROFILE.libRepXUpgrader3.libRepXUpgrader3CHECKED.libRepXUpgrader3PROFILE.lib[/source]

That's what I have under Linker->Input

#5 ApochPiQ   Moderators   -  Reputation: 14666

Like
0Likes
Like

Posted 08 July 2012 - 07:40 AM

Did you create the project file or is it one supplied with the SDK? Are you missing a .cpp file or two?

#6 noatom   Members   -  Reputation: 782

Like
0Likes
Like

Posted 08 July 2012 - 08:16 AM

I created an empty project and then added the HelloWorld header and cpp file. The rest are just set in the include directories in the project options.

#7 ApochPiQ   Moderators   -  Reputation: 14666

Like
0Likes
Like

Posted 08 July 2012 - 04:10 PM

You probably need the .cpp files where all those functions are implemented, then.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS