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 > Fasm how to compile the static library .lib file

Author
Thread Post new topic Reply to topic
CFasm



Joined: 04 Dec 2015
Posts: 3
Fasm how to compile the static library .lib file
Fasm how to compile the static library .lib file

I need to use fasm call a vc compiler static library file. in a function how to achieve?
Post 08 Apr 2017, 14:44
View user's profile Send private message Reply with quote
Trinitek



Joined: 06 Nov 2011
Posts: 256
You're going to want to write your FASM module as a COFF object, where you will use the 'extrn' directive to prototype the library functions you need. Then, link the produced COFF object file with the library using your toolchain's linker.

See http://flatassembler.net/docs.php?article=manual#2.4.3 and also see the MSCOFF example in the examples folder.
Post 08 Apr 2017, 16:31
View user's profile Send private message Reply with quote
CFasm



Joined: 04 Dec 2015
Posts: 3

Trinitek wrote:
You're going to want to write your FASM module as a COFF object, where you will use the 'extrn' directive to prototype the library functions you need. Then, link the produced COFF object file with the library using your toolchain's linker.

See http://flatassembler.net/docs.php?article=manual#2.4.3 and also see the MSCOFF example in the examples folder.





Thanks,i just want to use fasm to compile an exe file but it needs use a lib library,how to achieve
Post 09 Apr 2017, 03:43
View user's profile Send private message Reply with quote
Trinitek



Joined: 06 Nov 2011
Posts: 256
Do not let the fact that FASM can output executable files directly confuse you. FASM does not incorporate a linker, so this is not possible.
Post 09 Apr 2017, 04:34
View user's profile Send private message Reply with quote
CFasm



Joined: 04 Dec 2015
Posts: 3
yes, i understand

thanks!
Post 09 Apr 2017, 05:07
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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.