flat assembler
Message board for the users of flat assembler.
Index
> Windows > Don't understand compilation error message |
Author |
|
revolution 03 Oct 2015, 08:18
When you include win64ax you are already defining the imports. So when you place the imports again with "include '%fasminc%\api\Kernel32.inc'
" then you get an error for symbol already defined. |
|||
03 Oct 2015, 08:18 |
|
magicSqr 03 Oct 2015, 09:48
revolution wrote: When you include win64ax you are already defining the imports. So when you place the imports again with "include '%fasminc%\api\Kernel32.inc' Hi revolution, I have always used Code: format PE64 console entry start include '%fasminc%\win64ax.inc' section '.text' code readable executable start: code in here section '.idata' import data readable writeable library kernel32,'KERNEL32.DLL',\ user32, 'USER32.DLL' include '%fasminc%\api\Kernel32.inc' include '%fasminc%\api\User32.inc' and have never had this issue? I tried commenting out "include '%fasminc%\api\Kernel32.inc'" but fasm rightly complains that CreateFile hasn't been defined. I did just find the problem though. I was going to include a proc for writing to a file and stupidly called it WriteFile (already defined in win API) instead of my usual writeFile. Thanks magicĀ² |
|||
03 Oct 2015, 09:48 |
|
revolution 03 Oct 2015, 11:56
Heh, okay that'll teach me to simply read and not test the code.
|
|||
03 Oct 2015, 11:56 |
|
magicSqr 03 Oct 2015, 16:20
revolution wrote: Heh, okay that'll teach me to simply read and not test the code. Quote: When all else fails, read the source |
|||
03 Oct 2015, 16:20 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.