The MASM Forum

Projects => Rarely Used Projects => GoAsm => Topic started by: shankle on February 07, 2021, 07:06:38 AM

Title: program compile errors
Post by: shankle on February 07, 2021, 07:06:38 AM
            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.
Title: Re: program compile errors
Post by: wjr on February 08, 2021, 08:51:59 AM
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.
Title: Re: program compile errors
Post by: rsala on February 08, 2021, 11:00:16 PM
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!
Title: Re: program compile errors
Post by: shankle on February 14, 2021, 10:20:48 AM
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   
Title: Re: program compile errors
Post by: rsala on February 14, 2021, 11:02:54 PM
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.
Title: Re: program compile errors
Post by: shankle on February 24, 2021, 01:00:18 PM
Thanks all for your help.
I think the problem is solved.
Title: Re: program compile errors
Post by: rsala on February 25, 2021, 12:23:50 AM
Glad to hear that!  :thumbsup: