flat assembler
Message board for the users of flat assembler.

Index > Windows > *.lib in FASM

Author
Thread Post new topic Reply to topic
DMD



Joined: 05 Jun 2006
Posts: 24
DMD
Hi to All!

may be it's "old" question, but I've not found the answer.

So, i have *.lib (this *.lib makes in MASM), may i use this lib in FASM and call procedures from *.lib directly ?

thnks a lot!

DMD
Post 09 Feb 2007, 10:32
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
you must create MS COFF file in FASM, and then link it with your library.

Code:
fasm test.asm test.obj
link /subsystem:console test.obj mylib.lib    
Post 09 Feb 2007, 10:41
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
DMD



Joined: 05 Jun 2006
Posts: 24
DMD
Quote:

you must create MS COFF file in FASM, and then link it with your library.
Code:
fasm test.asm test.obj
link /subsystem:console test.obj mylib.lib


Ok, but sources not in FASM ! Is it possible?
Post 09 Feb 2007, 12:41
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
you don't need sources to .lib, you need just .lib file itself. Then you can use it in FASM by producing MS COFF file and linking it. For more details, tell us what the lib file is, or at least name on function it contains.
Post 09 Feb 2007, 12:43
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
DMD



Joined: 05 Jun 2006
Posts: 24
DMD
I see...

I'll be try your way... Tnkns!

Because sources not very big - I'll try transate sources in to FASM and create .dll as usually. Smile


Last edited by DMD on 09 Feb 2007, 13:01; edited 1 time in total
Post 09 Feb 2007, 12:56
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
what sources? If you mean sources of .lib, you DON'T need to translate these.
Post 09 Feb 2007, 12:58
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
DMD: don't be afraid of linking, learn it too
Post 09 Feb 2007, 13:04
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
DMD



Joined: 05 Jun 2006
Posts: 24
DMD
vid wrote:
what sources? If you mean sources of .lib, you DON'T need to translate these.


Don't worry! I have sources of *.lib in MASM syntax. Smile Wink
Post 09 Feb 2007, 13:06
View user's profile Send private message Reply with quote
DMD



Joined: 05 Jun 2006
Posts: 24
DMD
vid wrote:
DMD: don't be afraid of linking, learn it too


Well, i know - no limit for study ! Wink
Thnks for help! Smile
Post 09 Feb 2007, 13:09
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


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.