English Amiga Board

Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

Thread Tools
Old 27 December 2019, 19:03   #1
Registered User
Join Date: Dec 2019
Location: UK
Posts: 5
error compiling vasm on windows

I'm trying to compile vasm 1.8g on Windows 10 Pro x64 (version 1909) using Visual Studio 2019.

First I open "x86 Native Tools Command Prompt for VS 2019" then enter "nmake /f Makefile.Win32 CPU=m68k SYNTAX=mot".

The program begins to compile, but then fails with the following error: "C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(2487): error C2118: negative subscript"

The error refers to this line of code within winnt.h: "C_ASSERT(TYPE_ALIGNMENT(LARGE_INTEGER) == 8);"

Any help would be very much appreciated.

Ami030 is offline  
Old 27 December 2019, 23:48   #2
Registered User
Join Date: Nov 2006
Location: Stockholm, Sweden
Posts: 224
Remove the 'Zp1' switch from Makefile.Win32.

The official version will eventually get fixed too, I reported this recently.
Kalms is offline  
Old 27 December 2019, 23:49   #3
Registered User

Join Date: May 2018
Location: France
Posts: 120
I didn't use Visual studio 2019, but you can try my gradle build configuration: https://github.com/prb28/vasm.
It works on visual 2017.
The 64b binary is here: https://github.com/prb28/vscode-amig...smm68k_mot.exe
prb28 is offline  
Old 28 December 2019, 17:07   #4
Registered User
Join Date: Dec 2019
Location: UK
Posts: 5
Originally Posted by Kalms View Post
Remove the 'Zp1' switch from Makefile.Win32.

That did the trick. Many thanks.
Ami030 is offline  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross compiling FS-UAE binaries to windows/os on a linux prb28 support.FS-UAE 2 29 October 2018 17:17
Building VASM on Windows guy lateur Coders. Asm / Hardware 16 30 September 2018 17:57
Compiling FS-UAE without X-Windows fasih support.FS-UAE 2 13 September 2016 22:20
DevPac error when compiling?! h0ffman Coders. General 38 28 June 2011 00:00
Compiling WinUAE - Windows DDK files? mdwh2 support.WinUAE 1 21 January 2003 21:13

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 21:21.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.06088 seconds with 13 queries