Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Velochy

Weird unresolved external symbols.. 4-th time:)

This topic is 5799 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Okay.. i really need to get em fixed.. i have tried everything, triple checked everything and i cannot think of any possible reason why 80% of them occur. I am sure i have all the lib files i need for the error funcs. All includes seem to be in place, cpp files needed should all be in the project. also the funcs with errors only use funcs from the cpp files i have AND math.h (which i suspect is the problem someway). i have tried rebuilding and even recreating the project. It could be the project settings. Yeah, this is my 4-th posting so if i failed to mention something my previous 3 should contain it... just look over my profile.. they shuld be the most recent new threads. here are the errors: the error list: Linking... Animation.obj : error LNK2001: unresolved external symbol "public: void __thiscall cQuaternion::ConvertToAxisAngle(void)" (?ConvertToAxisAngle@cQuaternion@@QAEXXZ) Animation.obj : error LNK2001: unresolved external symbol "public: int __thiscall cPart::ApplyCurrentToRotFrom(class cQuaternion *,int)" (?ApplyCurrentToRotFrom@cPart@@QAEHPAVcQuaternion@@H@Z) BSPStuff.obj : error LNK2001: unresolved external symbol "public: bool __thiscall cCITriangle::CheckSplit(class cPlane &,class cVertex *)" (?CheckSplit@cCITriangle@@QAE_NAAVcPlane@@PAVcVertex@@@Z) BSPStuff.obj : error LNK2001: unresolved external symbol "public: enum ePlaneLocation __thiscall cPlane::Test(class cPoint3 const &)" (?Test@cPlane@@QAE?AW4ePlaneLocation@@ABVcPoint3@@@Z) BSPStuff.obj : error LNK2001: unresolved external symbol "public: void __thiscall cPlane::Create(class cPoint3 const &,class cPoint3 const &,class cPoint3 const &)" (?Create@cPlane@@QAEXABVcPoint3@@00@Z) Culling.obj : error LNK2001: unresolved external symbol "public: float __thiscall cPlane::Func(class cPoint3 const &)" (?Func@cPlane@@QAEMABVcPoint3@@@Z) Patches.obj : error LNK2001: unresolved external symbol "public: float __thiscall cPlane::Func(class cPoint3 const &)" (?Func@cPlane@@QAEMABVcPoint3@@@Z) Rendering.obj : error LNK2001: unresolved external symbol "public: float __thiscall cPlane::Func(class cPoint3 const &)" (?Func@cPlane@@QAEMABVcPoint3@@@Z) InitGame.obj : error LNK2001: unresolved external symbol "public: void __thiscall GfxLayer::DrawOneFrame(unsigned long)" (?DrawOneFrame@GfxLayer@@QAEXK@Z) InitGame.obj : error LNK2001: unresolved external symbol "public: void __thiscall GfxLayer::SetRenderStates(void)" (?SetRenderStates@GfxLayer@@QAEXXZ) InitGame.obj : error LNK2001: unresolved external symbol "public: bool __thiscall GfxLayer::CreateBuffers(unsigned int)" (?CreateBuffers@GfxLayer@@QAE_NI@Z) Rendering.obj : error LNK2001: unresolved external symbol "public: bool __thiscall cPart::Transform(class cMatrix4,class cMatrix4,class cVertex *,unsigned int,unsigned int *,class cITriangle *,unsigned int,unsigned int *,class stlport::vectorcIndexArray *,class stlport::allocator > *,class cFrustum *,unsigned int *,unsigned int)" (?Transform@cPart@@QAE_NVcMatrix4@@0PAVcVertex@@IPAIPAVcITriangle@@I2PAV?$vector@PAVcIndexArray@@V?$allocator@PAVcIndexArray@@@stlport@@@s tlport@@PAVcFrustum@@2I@Z) Rendering.obj : error LNK2001: unresolved external symbol "public: bool __thiscall cMatrix4::operator=(class cMatrix4 const &)" (??4cMatrix4@@QAE_NABV0@@Z) Rendering.obj : error LNK2001: unresolved external symbol "class cMatrix4 __cdecl operator*(class cMatrix4 const &,class cMatrix4 const &)" (??D@YA?AVcMatrix4@@ABV0@0@Z) Rendering.obj : error LNK2001: unresolved external symbol "public: class cMatrix4 __thiscall cPoint3::Translate(void)" (?Translate@cPoint3@@QAE?AVcMatrix4@@XZ) Rendering.obj : error LNK2001: unresolved external symbol "public: class cMatrix4 __thiscall cQuaternion::ConvertToMatrix(void)" (?ConvertToMatrix@cQuaternion@@QAE?AVcMatrix4@@XZ) Rendering.obj : error LNK2001: unresolved external symbol "public: bool __thiscall cObject::TestFrustum(class cFrustum *)" (?TestFrustum@cObject@@QAE_NPAVcFrustum@@@Z) Rendering.obj : error LNK2001: unresolved external symbol "public: bool __thiscall cWorldCell::TestFrustum(class cFrustum *)" (?TestFrustum@cWorldCell@@QAE_NPAVcFrustum@@@Z) Rendering.obj : error LNK2001: unresolved external symbol "public: void __thiscall cWorldCell::Cull(class stlport::vector > *,class cFrustum *,class cPoint3 const &,bool)" (?Cull@cWor ldCell@@QAEXPAV?$vector@PAVcIndexArray@@V?$allocator@PAVcIndexArray@@@stlport@@@stlport@@PAVcFrustum@@ABVcPoint3@@_N@Z) UtilMain.obj : error LNK2001: unresolved external symbol "class cPoint3 __cdecl operator*(class cMatrix4 const &,class cPoint3 const &)" (??D@YA?AVcPoint3@@ABVcMatrix4@@ABV0@@Z) UtilMain.obj : error LNK2001: unresolved external symbol "bool __cdecl operator==(class cPoint3 const &,class cPoint3 const &)" (??8@YA_NABVcPoint3@@0@Z) UtilMain.obj : error LNK2001: unresolved external symbol "class cPoint3 __cdecl operator+(class cPoint3 const &,class cPoint3 const &)" (??H@YA?AVcPoint3@@ABV0@0@Z) LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/MyGame.exe : fatal error LNK1120: 21 unresolved externals Error executing link.exe.

Share this post


Link to post
Share on other sites
Advertisement



You don't have a WinMain function? Are you using some graphics library like SDL?

[edited by - daerid on September 3, 2002 1:09:00 PM]

Share this post


Link to post
Share on other sites
i kknew i forgot to mention something... i havent gotten around to winmain just yet... i wanted to compile and see what happenned.. is that causing all these errors or just the ones concerning winmain?
And as for that very obivous remark about the 4-th posting.,. i REALLY need this answered

[edited by - Velochy on September 3, 2002 1:14:51 PM]

Share this post


Link to post
Share on other sites
Make sure you indicate exactly which .lib files you are using. Just pointing to the directory that the .lib files exist on isn''t enough. If you are using Visual C++ 6.0 or similar, you should be able to see which lib files are included under your "project settings".

Share this post


Link to post
Share on other sites
yeah.. i have all i think i need included IN project settings... ah..one question.. where do the functions of math.h get their function bodies... are they defined in math.h or (this is what i think might be the mess) are they in a separate lib file or cpp file which needs to be mentioned?

Share this post


Link to post
Share on other sites
Are you using any .dlls or .libs for the classes? Also, what apis are you using and do the classes that cause errors use those apis?

Share this post


Link to post
Share on other sites
t separate lib file... does it need to be mentioned somewhere. also how do i determine the lib file settings for multithread, quadword and whatever.

Share this post


Link to post
Share on other sites
The easiest way is to look up the documentation provided,... or trial-and-error.

[EDIT] ... and beware of the STRICT symbol, some libs are compiled with the STRICT defined, some are not. Linking a STRICT-defined project with a STRICT-undefined lib will have similar problems.... I once got fustrated with the CDX library because of this, heheheh.

[edited by - DerekSaw on September 4, 2002 1:58:43 AM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!