Author Topic: program compile errors  (Read 1003 times)

shankle

  • Member
  • ****
  • Posts: 868
program compile errors
« 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.

wjr

  • Member
  • **
  • Posts: 227
    • WJR's website
Re: program compile errors
« Reply #1 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.

rsala

  • Member
  • ***
  • Posts: 331
    • Easy Code
Re: program compile errors
« Reply #2 on: February 08, 2021, 11:00:16 PM »
EC coder

shankle

  • Member
  • ****
  • Posts: 868
Re: program compile errors
« Reply #3 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   

rsala

  • Member
  • ***
  • Posts: 331
    • Easy Code
Re: program compile errors
« Reply #4 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.
EC coder

shankle

  • Member
  • ****
  • Posts: 868
Re: program compile errors
« Reply #5 on: February 24, 2021, 01:00:18 PM »
Thanks all for your help.
I think the problem is solved.

rsala

  • Member
  • ***
  • Posts: 331
    • Easy Code
Re: program compile errors
« Reply #6 on: February 25, 2021, 12:23:50 AM »
Glad to hear that!  :thumbsup:
EC coder