Jump to content
  • Advertisement
Sign in to follow this  
Droid_999

Compiling with VS 2017 on Win 10 x64

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

Hi

I'm porting my linux based game to Windows - and everything is compiling ok except for these three lines

1>Finished searching libraries
1>as_callfunc_x64_msvc.obj : error LNK2019: unresolved external symbol CallX64 referenced in function "unsigned __int64 __cdecl CallSystemFunctionNative(class asCContext *,class asCScriptFunction *,void *,unsigned long *,void *,unsigned __int64 &)" (?CallSystemFunctionNative@@YA_KPEAVasCContext@@PEAVasCScriptFunction@@PEAXPEAK2AEA_K@Z)
1>as_callfunc_x64_msvc.obj : error LNK2019: unresolved external symbol GetReturnedFloat referenced in function "unsigned __int64 __cdecl CallSystemFunctionNative(class asCContext *,class asCScriptFunction *,void *,unsigned long *,void *,unsigned __int64 &)" (?CallSystemFunctionNative@@YA_KPEAVasCContext@@PEAVasCScriptFunction@@PEAXPEAK2AEA_K@Z)
1>as_callfunc_x64_msvc.obj : error LNK2019: unresolved external symbol GetReturnedDouble referenced in function "unsigned __int64 __cdecl CallSystemFunctionNative(class asCContext *,class asCScriptFunction *,void *,unsigned long *,void *,unsigned __int64 &)" (?CallSystemFunctionNative@@YA_KPEAVasCContext@@PEAVasCScriptFunction@@PEAXPEAK2AEA_K@Z)
1>C:\Users\X\Source\Repos\pd\x64\Debug\pd.exe : fatal error LNK1120: 3 unresolved externals

I assume this means that I'm not linking a particular windows library in - but I really have no idea on how to start looking for what it might be.

Any suggestions?

Thanks

EDIT**

Ok - found I was missing as_callfunc_x64_msvc_asm.asm - which defines those three functions.  Now - to figure out how to compile this - I have the custom build command from the help page

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

How do I run this as a custom build on this one file?

Edited by Droid_999

Share this post


Link to post
Share on other sites
Advertisement

Add the .asm file to your project, right click on the file in the solution explorer view, find the place about 'Custom Tool'. Add the necessary details to invoke your line with m164.exe and its command line arguments

Share this post


Link to post
Share on other sites

You should be able to open the MSVC2015 project in MSVC2017, and let Visual Studio do the necessary changes to the project files. That way you won't need to try to figure it out on your own. 

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!