flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > how to add new EQUATES?

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 8902
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
hi
i got a SQLITE3.INC file which i put inside EQUATES folder,
i thought it would automatically link whenever i use SQLITE3.DLL

but it just output error: undefined symbol

if i link it using include 'SQLITE3.INC' in the same folder, then it would assemblies fine.

the question is, how to make the Fasm links automatically?
Post 27 Jun 2012, 08:15
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
You can modify WIN{32|64}{A|W).INC and add your equate file.

BTW: fasm never includes anything automatically. You would have to modify the source to have it always include something.
Post 27 Jun 2012, 09:15
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 8902
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 334455
sleepsleep
hi,
Code:
section '.idata' import data readable writeable
library  kernel32,       'kernel32.dll'
include 'API\KERNEL32.INC'
    


i was in the assumption that fasm automatically include
KERNEL32.INC in EQUATES folder.

i thought the fasm behaviour is, whenever there is an API include, it will tries to include the same filename in EQUATES folder.

but it doesn't works when i try.

Quote:

BTW: fasm never includes anything automatically. You would have to modify the source to have it always include something.

the include EQUATES\KERNEL32.INC and their friends is hard coded inside fasm sources?
Post 27 Jun 2012, 09:47
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
sleepsleep wrote:
the include EQUATES\KERNEL32.INC and their friends is hard coded inside fasm sources?
No. They are included by WIN{32|64}{A|W).INC. But you could modify the sources if you want fasm to always include something.
Post 27 Jun 2012, 10:26
View user's profile Send private message Visit poster's website 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-2020, Tomasz Grysztar.

Powered by rwasa.