flat assembler
Message board for the users of flat assembler.
Index
> Windows > Fasm how to compile the static library .lib file |
Author |
|
CFasm 08 Apr 2017, 14:44
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? |
|||
08 Apr 2017, 14:44 |
|
Trinitek 08 Apr 2017, 16:31
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. |
|||
08 Apr 2017, 16:31 |
|
CFasm 09 Apr 2017, 03:43
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. Thanks,i just want to use fasm to compile an exe file but it needs use a lib library,how to achieve |
|||
09 Apr 2017, 03:43 |
|
Trinitek 09 Apr 2017, 04:34
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.
|
|||
09 Apr 2017, 04:34 |
|
CFasm 09 Apr 2017, 05:07
yes, i understand
thanks! |
|||
09 Apr 2017, 05:07 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.