Sign in to follow this  
dxj19831029

Newest version linking error

Recommended Posts

Hi, I got following linking error when try to import the DLL. The build dll is ok. My compiler is: VC++ 2008 OS: vista Any suggestion?
>angelscriptd.lib(as_objecttype.obj) : error LNK2001: unresolved external symbol "public: void __thiscall asCAtomic::set(unsigned long)" (?set@asCAtomic@@QAEXK@Z)
1>angelscriptd.lib(as_module.obj) : error LNK2001: unresolved external symbol "public: void __thiscall asCAtomic::set(unsigned long)" (?set@asCAtomic@@QAEXK@Z)
1>angelscriptd.lib(as_context.obj) : error LNK2019: unresolved external symbol "public: void __thiscall asCAtomic::set(unsigned long)" (?set@asCAtomic@@QAEXK@Z) referenced in function "public: __thiscall asCContext::asCContext(class asCScriptEngine *,bool)" (??0asCContext@@QAE@PAVasCScriptEngine@@_N@Z)
1>angelscriptd.lib(as_scriptengine.obj) : error LNK2001: unresolved external symbol "public: void __thiscall asCAtomic::set(unsigned long)" (?set@asCAtomic@@QAEXK@Z)
1>angelscriptd.lib(as_scriptstruct.obj) : error LNK2001: unresolved external symbol "public: void __thiscall asCAtomic::set(unsigned long)" (?set@asCAtomic@@QAEXK@Z)
1>angelscriptd.lib(as_arrayobject.obj) : error LNK2001: unresolved external symbol "public: void __thiscall asCAtomic::set(unsigned long)" (?set@asCAtomic@@QAEXK@Z)
1>angelscriptd.lib(as_thread.obj) : error LNK2001: unresolved external symbol "public: void __thiscall asCAtomic::set(unsigned long)" (?set@asCAtomic@@QAEXK@Z)
1>angelscriptd.lib(as_scriptengine.obj) : error LNK2019: unresolved external symbol "public: __thiscall asCGarbageCollector::asCGarbageCollector(void)" (??0asCGarbageCollector@@QAE@XZ) referenced in function "public: __thiscall asCScriptEngine::asCScriptEngine(void)" (??0asCScriptEngine@@QAE@XZ)
1>angelscriptd.lib(as_objecttype.obj) : error LNK2019: unresolved external symbol "public: __thiscall asCAtomic::asCAtomic(void)" (??0asCAtomic@@QAE@XZ) referenced in function "public: int __thiscall asCObjectType::GetRefCount(void)" (?GetRefCount@asCObjectType@@QAEHXZ)
1>angelscriptd.lib(as_module.obj) : error LNK2001: unresolved external symbol "public: __thiscall asCAtomic::asCAtomic(void)" (??0asCAtomic@@QAE@XZ)
1>angelscriptd.lib(as_context.obj) : error LNK2001: unresolved external symbol "public: __thiscall asCAtomic::asCAtomic(void)" (??0asCAtomic@@QAE@XZ)
1>angelscriptd.lib(as_scriptengine.obj) : error LNK2001: unresolved external symbol "public: __thiscall asCAtomic::asCAtomic(void)" (??0asCAtomic@@QAE@XZ)
1>angelscriptd.lib(as_scriptstruct.obj) : error LNK2001: unresolved external symbol "public: __thiscall asCAtomic::asCAtomic(void)" (??0asCAtomic@@QAE@XZ)
1>angelscriptd.lib(as_arrayobject.obj) : error LNK2001: unresolved external symbol "public: __thiscall asCAtomic::asCAtomic(void)" (??0asCAtomic@@QAE@XZ)
1>angelscriptd.lib(as_thread.obj) : error LNK2001: unresolved external symbol "public: __thiscall asCAtomic::asCAtomic(void)" (??0asCAtomic@@QAE@XZ)
1>angelscriptd.lib(as_module.obj) : error LNK2019: unresolved external symbol "public: unsigned long __thiscall asCAtomic::get(void)const " (?get@asCAtomic@@QBEKXZ) referenced in function "public: void __thiscall asCModule::InternalReset(void)" (?InternalReset@asCModule@@QAEXXZ)
1>angelscriptd.lib(as_scriptengine.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall asCAtomic::get(void)const " (?get@asCAtomic@@QBEKXZ)
1>angelscriptd.lib(as_scriptstruct.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall asCAtomic::get(void)const " (?get@asCAtomic@@QBEKXZ)
1>angelscriptd.lib(as_arrayobject.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall asCAtomic::get(void)const " (?get@asCAtomic@@QBEKXZ)
1>angelscriptd.lib(as_objecttype.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall asCAtomic::get(void)const " (?get@asCAtomic@@QBEKXZ)
1>angelscriptd.lib(as_objecttype.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall asCAtomic::atomicInc(void)" (?atomicInc@asCAtomic@@QAEKXZ)
1>angelscriptd.lib(as_module.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall asCAtomic::atomicInc(void)" (?atomicInc@asCAtomic@@QAEKXZ)
1>angelscriptd.lib(as_context.obj) : error LNK2019: unresolved external symbol "public: unsigned long __thiscall asCAtomic::atomicInc(void)" (?atomicInc@asCAtomic@@QAEKXZ) referenced in function "public: virtual int __thiscall asCContext::SetArgObject(unsigned int,void *)" (?SetArgObject@asCContext@@UAEHIPAX@Z)
1>angelscriptd.lib(as_scriptengine.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall asCAtomic::atomicInc(void)" (?atomicInc@asCAtomic@@QAEKXZ)
1>angelscriptd.lib(as_scriptstruct.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall asCAtomic::atomicInc(void)" (?atomicInc@asCAtomic@@QAEKXZ)
1>angelscriptd.lib(as_arrayobject.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall asCAtomic::atomicInc(void)" (?atomicInc@asCAtomic@@QAEKXZ)
1>angelscriptd.lib(as_thread.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall asCAtomic::atomicInc(void)" (?atomicInc@asCAtomic@@QAEKXZ)
1>angelscriptd.lib(as_objecttype.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall asCAtomic::atomicDec(void)" (?atomicDec@asCAtomic@@QAEKXZ)
1>angelscriptd.lib(as_module.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall asCAtomic::atomicDec(void)" (?atomicDec@asCAtomic@@QAEKXZ)
1>angelscriptd.lib(as_context.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall asCAtomic::atomicDec(void)" (?atomicDec@asCAtomic@@QAEKXZ)
1>angelscriptd.lib(as_scriptengine.obj) : error LNK2019: unresolved external symbol "public: unsigned long __thiscall asCAtomic::atomicDec(void)" (?atomicDec@asCAtomic@@QAEKXZ) referenced in function "public: virtual int __thiscall asCScriptEngine::Release(void)" (?Release@asCScriptEngine@@UAEHXZ)
1>angelscriptd.lib(as_scriptstruct.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall asCAtomic::atomicDec(void)" (?atomicDec@asCAtomic@@QAEKXZ)
1>angelscriptd.lib(as_arrayobject.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall asCAtomic::atomicDec(void)" (?atomicDec@asCAtomic@@QAEKXZ)
1>angelscriptd.lib(as_thread.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall asCAtomic::atomicDec(void)" (?atomicDec@asCAtomic@@QAEKXZ)
1>angelscriptd.lib(as_scriptengine.obj) : error LNK2019: unresolved external symbol "public: void __thiscall asCGarbageCollector::AddScriptObjectToGC(void *,class asCObjectType *)" (?AddScriptObjectToGC@asCGarbageCollector@@QAEXPAXPAVasCObjectType@@@Z) referenced in function "public: virtual void __thiscall asCScriptEngine::NotifyGarbageCollectorOfNewObject(void *,int)" (?NotifyGarbageCollectorOfNewObject@asCScriptEngine@@UAEXPAXH@Z)
1>angelscriptd.lib(as_scriptstruct.obj) : error LNK2001: unresolved external symbol "public: void __thiscall asCGarbageCollector::AddScriptObjectToGC(void *,class asCObjectType *)" (?AddScriptObjectToGC@asCGarbageCollector@@QAEXPAXPAVasCObjectType@@@Z)
1>angelscriptd.lib(as_arrayobject.obj) : error LNK2001: unresolved external symbol "public: void __thiscall asCGarbageCollector::AddScriptObjectToGC(void *,class asCObjectType *)" (?AddScriptObjectToGC@asCGarbageCollector@@QAEXPAXPAVasCObjectType@@@Z)
1>angelscriptd.lib(as_scriptengine.obj) : error LNK2019: unresolved external symbol "public: int __thiscall asCGarbageCollector::GarbageCollect(enum asEGCFlags)" (?GarbageCollect@asCGarbageCollector@@QAEHW4asEGCFlags@@@Z) referenced in function "public: virtual int __thiscall asCScriptEngine::GarbageCollect(enum asEGCFlags)" (?GarbageCollect@asCScriptEngine@@UAEHW4asEGCFlags@@@Z)
1>angelscriptd.lib(as_scriptengine.obj) : error LNK2019: unresolved external symbol "public: void __thiscall asCGarbageCollector::GetStatistics(unsigned int *,unsigned int *,unsigned int *)" (?GetStatistics@asCGarbageCollector@@QAEXPAI00@Z) referenced in function "public: virtual void __thiscall asCScriptEngine::GetGCStatistics(unsigned int *,unsigned int *,unsigned int *)" (?GetGCStatistics@asCScriptEngine@@UAEXPAI00@Z)
1>angelscriptd.lib(as_scriptengine.obj) : error LNK2019: unresolved external symbol "public: void __thiscall asCGarbageCollector::GCEnumCallback(void *)" (?GCEnumCallback@asCGarbageCollector@@QAEXPAX@Z) referenced in function "public: virtual void __thiscall asCScriptEngine::GCEnumCallback(void *)" (?GCEnumCallback@asCScriptEngine@@UAEXPAX@Z)
1>../Debug\angelScriptDLL.dll : fatal error LNK1120: 10 unresolved externals

Share this post


Link to post
Share on other sites
Quote:
Original post by WitchLord
When compiling the library you need to include the new source files in the project, i.e. as_atomic.cpp and as_gc.cpp that you'll find in the sdk/angelscript/source/ directory.

You mean when you compile the application using angelscript?

Share this post


Link to post
Share on other sites
The problem fixed when you add the .cpp file into VS.
If you check the solution explorer, it missed those cpp files.
Just add them.

Quote:
Original post by B_old
Quote:
Original post by WitchLord
When compiling the library you need to include the new source files in the project, i.e. as_atomic.cpp and as_gc.cpp that you'll find in the sdk/angelscript/source/ directory.

You mean when you compile the application using angelscript?


Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this