Sign in to follow this  

From 2.20.2 to 2.21.0: x64 error when linking static lib to app

This topic is 2337 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

This is on windows 7 with vc2010. I just switched from version 2.20.2 to version 2.21.0. For Win32 everything is ok. I compiled to x64 static lib as well, as I did with the previous version.
When I link this lib with my application, I get the following error:


angelscript64.lib(as_callfunc.obj) : error LNK2001: unresolved external symbol "unsigned __int64 __cdecl CallSystemFunctionNative(class asCContext *,class asCScriptFunction *,void *,unsigned long *,void *,unsigned __int64 &)" (?CallSystemFunctionNative@@YA_KPEAVasCContext@@PEAVasCScriptFunction@@PEAXPEAK2AEA_K@Z)

Any idea what I could be doing wrong?

Share this post


Link to post
Share on other sites
It looks like the library project file for MSVC10 isn't including the as_callfunc_x64_msvc.cpp in the compilation. You probably also need to include the as_callfunc_x64_msvc_asm.asm.

If there are no default settings for compiling assembler files in MSVC10, then you can use the following compilation configuration:

ml64.exe /c /nologo /Fo$(OutDir)\as_callfunc_x64_msvc_asm.obj /W3 /Zi /Ta $(InputDir)\$(InputFileName)


It is what I use in the MSVC9 project files.



If you could share the updated project files after you got it to compile, I'll have it updated in the SDK.


Thanks,
Andreas

Share this post


Link to post
Share on other sites

This topic is 2337 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.

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