flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Windows > [solved] if defined name#.redundant

Author
Thread Post new topic Reply to topic
Mino



Joined: 14 Jan 2018
Posts: 127

[solved] if defined name#.redundant

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 msvcrtprintf'printf'
import kernel32ExitProcess'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 eaxecx
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: 15817
Location: Misner space

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: 127

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


Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2018, Tomasz Grysztar.
Powered by rwasa.