News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

program compile errors

Started by shankle, February 07, 2021, 07:06:38 AM

Previous topic - Next topic

shankle

            2-6-2021
Stats:
Windows 10 Pro 64-bit
windows.h is included in the same folder that gave these errors.
Which is GoAsm(d)\codejps\splitit64

   This program is giving the following errors:
    Warnings
   line 299 of the include file windows.h
   could not open file #include "windef.h"
   line 303 of the include file windows.h
   Unexpected material:-NTDDI_WIN9XALL   
   
   
   .const
#define LINKFILES
#define codejps
#define WIN64
#INCLUDE windows.h

#ifndef LPSTR
  #if !x64
   #define LPSTR dd
  #else
   #define LPSTR dq
  #endif
#endif

CommandLine LPSTR  ?

DATA SECTION


sample of the batch file
Set INCLUDE=d:\codejps\splitit64
Set PATH=d:\codejps\splitit64
GoAsm /x64/b/c spxx64.asm
GoLink /unused spxx64.obj
Will gladly give any needed info as requested
Thanks for any help.

wjr

Although GoAsm has found "windows.h", that file does #include others and "windef.h" does not appear to be found in that same folder. Generally the header files would be in a separate folder that Set INCLUDE in the batch file would point to.

I haven't tracked down yet why something seems to go wrong after that Warning, but getting your #include working should get you past this.

rsala

Hi Shankle,

You shoud download and install the GoAsm Headers:

https://onedrive.live.com/?authkey=%21AO0ZW3lk8QYI48M&cid=BEF3C1F2E5CB02D8&id=BEF3C1F2E5CB02D8%21108077&parId=BEF3C1F2E5CB02D8%21108076&action=locate

Regards!
EC coder

shankle

Hi Rasala,
I downloaded your suggestion for the headers in GoAsm & Windows .h
in GoAsm and it still is giving weird errors.
I'll do more checking.
Thanks   

rsala

Hi Shankle,

After downloading and installing the GoAsm Headers in a folder of any of your hard drives (the "C" system drive is not recommended), incude the "windows.h" in your project (make sure the path is the right one). The "windows.h" file already includes other necessary header files like "winuser.h", "wingdi.h", etc..

You can send your project to me if you like so that I can help you (assembly@easycode.cat).

Regards.
EC coder

shankle

Thanks all for your help.
I think the problem is solved.

rsala

EC coder