🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Newest version linking error

Started by
5 comments, last by WitchLord 15 years, 7 months ago
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
Advertisement
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.

Regards,
Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

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?

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?


Could you send me the new project files, so I can fix the SDK?

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

wats ur email address?

I will send u the project file for VS9, which is 2008.

:)

Quote: Original post by WitchLord
Could you send me the new project files, so I can fix the SDK?


andreas@angelcode.com

Thanks,
Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement