March 6th, 2011, 06:10 PM
#1
Unresolved external symbs
Yep.
Unresolved External Symbols. 10 of them.
Code:
Error 2 error LNK2001: unresolved external symbol "public: int __thiscall Zora::CKernal::Execute(void)" (?Execute@CKernal@Zora@@QAEHXZ) E:\Projects\Zora Engine\Zora Test\Application.obj Zora Test
Error 3 error LNK2001: unresolved external symbol "public: static class Zora::IProfileOutputHandler * Zora::CProfileSample::outputHandler" (?outputHandler@CProfileSample@Zora@@2PAVIProfileOutputHandler@2@A) E:\Projects\Zora Engine\Zora Test\Application.obj Zora Test
Error 4 error LNK2001: unresolved external symbol "public: __thiscall Zora::CKernal::CKernal(void)" (??0CKernal@Zora@@QAE@XZ) E:\Projects\Zora Engine\Zora Test\Application.obj Zora Test
Error 5 error LNK2001: unresolved external symbol "public: __thiscall Zora::CSettingsManager::CSettingsManager(void)" (??0CSettingsManager@Zora@@QAE@XZ) E:\Projects\Zora Engine\Zora Test\Application.obj Zora Test
Error 6 error LNK2001: unresolved external symbol "public: bool __thiscall Zora::CLog::Init(void)" (?Init@CLog@Zora@@QAE_NXZ) E:\Projects\Zora Engine\Zora Test\Application.obj Zora Test
Error 7 error LNK2001: unresolved external symbol "public: static class Zora::CLog & __cdecl Zora::CLog::Get(void)" (?Get@CLog@Zora@@SAAAV12@XZ) E:\Projects\Zora Engine\Zora Test\Application.obj Zora Test
Error 8 error LNK2001: unresolved external symbol "public: virtual void __thiscall Zora::CProfileLogHandler::BeginOutput(float)" (?BeginOutput@CProfileLogHandler@Zora@@UAEXM@Z) E:\Projects\Zora Engine\Zora Test\Application.obj Zora Test
Error 9 error LNK2001: unresolved external symbol "public: virtual void __thiscall Zora::CProfileLogHandler::Sample(float,float,float,float,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int)" (?Sample@CProfileLogHandler@Zora@@UAEXMMMMHV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) E:\Projects\Zora Engine\Zora Test\Application.obj Zora Test
Error 10 error LNK2001: unresolved external symbol "public: virtual void __thiscall Zora::CProfileLogHandler::EndOutput(void)" (?EndOutput@CProfileLogHandler@Zora@@UAEXXZ) E:\Projects\Zora Engine\Zora Test\Application.obj Zora Test
Error 11 error LNK2001: unresolved external symbol "public: static void __cdecl Zora::IMMObject::CollectRemainingObjects(bool)" (?CollectRemainingObjects@IMMObject@Zora@@SAX_N@Z) E:\Projects\Zora Engine\Zora Test\Zora Test.obj Zora Test
I know for a fact, I'm linking against ZEngine.lib, Is it possible that VC went explode() with my function names?
PHP Code:
// CApp.h
#ifndef __CAPPLICATION_H__
#define __CAPPLICATION_H__
#include "../ZEngine/engineIncludes.h"
#include "../ZEngine/Singleton.h"
class CApplication : public Singleton < CApplication >
{
public:
void Run ( int argc , char * argv []);
};
#endif
PHP Code:
// CApp.cpp
#define __ZORA__
#include "Application.h"
void CApplication :: Run ( int argc , char * argv [])
{
// Open logFiles.
if(! CLog :: Get (). Init ()) return;
// Couple of SingleTonZ :D
new CSettingsManager ();
new CKernal ();
CProfileLogHandler profileLogHandler ;
CProfileSample :: outputHandler = & profileLogHandler ;
// Main LOOP!
CKernal :: GetSingleton (). Execute ();
// Clean UP!
delete CKernal :: GetSingletonPtr ();
delete CSettingsManager :: GetSingletonPtr ();
}
The define is only to enable the inclusion of my headers from the static lib.
March 6th, 2011, 07:05 PM
#2
Re: Unresolved external symbs
Originally Posted by
night2dark2
I know for a fact, I'm linking against ZEngine.lib,
Unless we have your project, we can't verify this for ourselves. Right now, we don't know if you made a mistake or not. None of what you posted proves anything as to whether you're doing things correctly when it comes to linker settings.
Is it possible that VC went explode() with my function names?
No, the problem is usually
1) you didn't include that library in your linker settings,
or
2) if it's C++ templates involved, you instantiated a template, and the implementation for that template is not available.
Regards,
Paul McKenzie
Last edited by Paul McKenzie; March 6th, 2011 at 07:08 PM .
March 6th, 2011, 09:22 PM
#3
Re: Unresolved external symbs
March 6th, 2011, 09:25 PM
#4
Re: Unresolved external symbs
Do not include pdb, ncb, or any junk files from your project. You should only include source code, resources, and any other files needed to compile and link your project.
Unfortunately, I use Visual Studio 2008, so your project will not open for me.
Regards,
Paul McKenzie
Last edited by Paul McKenzie; March 6th, 2011 at 09:32 PM .
March 6th, 2011, 09:36 PM
#5
Re: Unresolved external symbs
Downgraded the solution for you.
Attached Files
Last edited by night2dark2; March 6th, 2011 at 09:59 PM .
Reason: Added Attachment
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width