flat assembler
Message board for the users of flat assembler.

Index > Windows > COFF Question

Author
Thread Post new topic Reply to topic
proveren



Joined: 24 Jul 2004
Posts: 68
Location: Bulgaria
proveren
I have written some FASM code and now want to link it to an .obj file in order to create an executable. I put the FORMAT COFF directive at top of my code, but it can't use the directive import, I checked later in the documentation and saw that indeed the format coff directive does not support import. In such case, how can I call the WinAPI functions from a coff file?
Also, is there a way to make the resource from FASM in COFF, or should I use another language to make a .res file?
Post 01 Aug 2004, 17:07
View user's profile Send private message Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
if you are using some external LIBs with imports, you can declare the functions that you're using with "extrn" directive, and then link output against import libraries.
Post 01 Aug 2004, 17:14
View user's profile Send private message Visit poster's website Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex
Proveren,

Have a look at this thread:

Linking Fasm object files with MS Link

http://board.flatassembler.net/topic.php?t=479&start=0&postdays=0&postorder=asc&highlight=

_________________
Code it... That's all...
Post 03 Aug 2004, 10:14
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. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.