flat assembler
Message board for the users of flat assembler.

Index > Windows > Linking FASM with VS2017 libs

Author
Thread Post new topic Reply to topic
system error



Joined: 01 Sep 2013
Posts: 670
system error 09 Jul 2017, 18:51
Just finished downloading VS2017 community.

I can't no longer link my code with some of the VS2017 "libs" like I used to with previous releases of VS after upgrading it. Looks like VS2017 have a radically different ideas on how to do the LINKing. Have anybody successfully linked the 64-bit COFF objects to, for example, "msvcrt.lib" using VS2017 / SDK components? Would you share you configs? I have only 1 "msvcrt.lib" found out of the installation folders and it doesn't work with normal "LINK" scripts like I used to. (I have VS2017 Community with full install, except for the mobile components). And what's with this annoying missing "UUID.LIB" linker error?

Note: the DLL works fine though.
Post 09 Jul 2017, 18:51
View user's profile Send private message Reply with quote
donn



Joined: 05 Mar 2010
Posts: 321
donn 19 Sep 2017, 02:52
Really doubt this would be relevant, but I updated to VS 2017 community a while back when converting my COFFs from 32->64 bit and had to change my (probably sloppy) link script:

Code:
REM CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" AMD64
cd C:\Asm
cl /c /EHsc /Gd cpp.cpp /I"C:\Program Files (x86)\AMD APP SDK\3.0\include"
link /LARGEADDRESSAWARE /MACHINE:X64 /SUBSYSTEM:WINDOWS /OUT:Executable.exe /ENTRY:start Executable.obj cpp.obj "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\um\x64\User32.Lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\um\x64\Kernel32.Lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\um\x64\d3d11.lib" "C:\Program Files (x86)\AMD APP SDK\3.0\lib\x86_64\OpenCL.lib"  /LIBPATH:"C:\Program Files (x86)\AMD APP SDK\3.0\lib\x86_64"
Executable.exe    


I don't use the msvcrt.lib directly, but ucrt.lib is here: C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\ucrt\x64.

My setup is pretty minimal but just got through some linking nightmares recently myself. Good luck!
Post 19 Sep 2017, 02:52
View user's profile Send private message Reply with quote
system error



Joined: 01 Sep 2013
Posts: 670
system error 09 Oct 2017, 19:45
I forgot about this thread.

Thanks for helping out, donn. I'll give "ucrt.lib" it a try.
Post 09 Oct 2017, 19:45
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.