64 bit assembler > 64 Bit Assembler

macros64 errors

(1/2) > >>

markallyn:
Hello everyone,

I searched the forum for this topic but came up empty handed.

I have been trying to include macros64.inc into a small project.  When I do I get error messages from the assembler regarding three symbols:  getattr, varsize, and regsize.  These occur in lines between 802 and 845 .

The include reads as follows:
    include \buildx64\macros64\macros64.inc

Has anyone else encountered this?

Mark Allyn



hutch--:
 :biggrin:

Mark,

You did not read the post where you downloaded it from, rename the "buildx64" directory to "masm32" and use the line "    include \masm32\macros64\macros64.inc and it should find the include file.

markallyn:
Hutch,

Thank you. That also answers a number of other questions I didn't ask!  Quite efficient.

Mark

markallyn:
Good mornint, Hutch and everyone,

OK.  I renamed the directory as masm32 and ran the following program.

--- Quote ---option casemap:none
include \masm32\include64\win64.inc
include \masm32\macros64\macros64.inc
include \masm32\include64\msvcrt.inc

includelib \masm32\include64\msvcrt.lib

.data
frmt1  BYTE "%s",0
msg1  BYTE "Darn it!  You can't mix c rt with windows",0

.code
main  PROC
sub  rsp, 30h
mov rcx, offset frmt1
mov  rdx, offset msg1
call  vc__cprintf
add  rsp, 30h
ret
main  ENDP
END
--- End quote ---

...and I get the same errors as mentioned in my original post.  Without the include macros line, the program assemble, links, and runs flawlessly. 

So, other suggestions?

Thanks again for the help.

Mark Allyn

markallyn:
Hutch and all,

Furthermore, if I replace all my include and includelib statements with just a single "include \masm32\include64\masm64rt.inc" , everything works fine! 

As the incomparable Marvin Gaye memorably sang:  "What's goin on..."

Thanks,
Mark Allyn

Navigation

[0] Message Index

[#] Next page

Go to full version