flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Windows > Linking FASM with VS2017 libs

Thread Post new topic Reply to topic
system error

Joined: 01 Sep 2013
Posts: 652
Linking FASM with VS2017 libs
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

Joined: 05 Mar 2010
Posts: 59
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:

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"

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

Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.