flat assembler
Message board for the users of flat assembler.

flat assembler > Windows > [solved] if defined name#.redundant

Author
Thread Post new topic Reply to topic
Mino



Joined: 14 Jan 2018
Posts: 156
Hello,
I don't understand my error, yet this one in the seemingly foolish way according to the error message (I inquired in the doc, but did not find anything about it. Or I've been looking in the wrong place.)
So here's my simple code:
Code:
format PE console
entry main
include 'INCLUDE\win32a.inc'
section '.idata' data readable import
library msvcrt, 'msvcrt.dll'\
kernel32, 'kernel32.dll'
import msvcrt, printf, 'printf'
import kernel32, ExitProcess, 'ExitProcess'
section '.data' data readable writeable
message db "Hello, world"
section '.code' code executable
macro write text 
{
push text
call [printf]
}
main:
push eax
mov eax, ecx
call [ExitProcess]
    

et voici l'erreur :
Quote:

library msvcrt, 'msvcrt.dll'\
INCLUDE\macro/import32.inc [9] library [4]:
if defined name#.redundant
processed: if defined 'kernel32.dll' .redundant
error: extra characters on line.

Can you help me Very Happy please ?

_________________
The best way to predict the future is to invent it.
Post 14 Feb 2018, 16:05
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 16057
Location: 112 Ocean Avenue, Amityville
You are missing a comma:
Code:
library msvcrt, 'msvcrt.dll',\ ;<--- add a comma here
kernel32, 'kernel32.dll'     
Post 14 Feb 2018, 17:12
View user's profile Send private message Visit poster's website Reply with quote
Mino



Joined: 14 Jan 2018
Posts: 156
Let's just say it's fatigue xD
Thank you very much, it works Smile
Post 14 Feb 2018, 17:21
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2018, Tomasz Grysztar.

Powered by rwasa.