flat assembler
Message board for the users of flat assembler.

Index > Windows > Linking static libraries

Author
Thread Post new topic Reply to topic
TheRawGod



Joined: 14 Sep 2003
Posts: 2
TheRawGod 14 Sep 2003, 11:18
Hi guys!
Is there a way to use statically linked libraries (.lib) with FASM? I do not mean that .libs for the corresponding dll's - we don't need them at all I mean .libs that go along and invlude all the functions code...
Also I'm very interesting in the solution without using any external linker... Just FASM itself. Is it possible?
There is no answer to this question in the official FASM documentation. Examples that I've found on the net didn't use the mechanism of static libs... So I'm relly lost...

Thanx a lot for your attention to my post.
Post 14 Sep 2003, 11:18
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 14 Sep 2003, 11:29
Hm, maybe I am not the proper guy to answer this question, because I don't like precompiled libraries at all, nor dll, nor lib, obj etc. Very Happy

But on the subject: You can compile your part in COFF or MS COFF format (ses the FASM manual for options you must set) then link libs and your object files together with some linker. (I think MS linker will help).
But, IMHO, better think about, how to make whole project at source level. It's not so hard as it looks at first glance. Wink

Regards.
Post 14 Sep 2003, 11:29
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
fasm9



Joined: 19 Jun 2003
Posts: 439
fasm9 14 Sep 2003, 13:15
When code size going bigger, code management getting difficult.
and when code management easier, code flexibility getting harder.
i agree TheRawGod, i agree JohnFound. Smile

These problems can't be solved easily!
if not, why vs.net so complex?

--
maybe i am looking for Rob in fasm
Post 14 Sep 2003, 13:15
View user's profile Send private message Reply with quote
imagineer



Joined: 09 Aug 2003
Posts: 14
imagineer 17 Sep 2003, 08:34
TheRawGod wrote:
Quote:

Is there a way to use statically linked libraries (.lib) with FASM? I do not mean that .libs for the corresponding dll's - we don't need them at all I mean .libs that go along and invlude all the functions code...


Yes, it is possible. There were several threads over at FASM section in Win32ASM Community messageboard on producing COFF files and linking them.

http://board.win32asmcommunity.net/

Cheers,
The I
Post 17 Sep 2003, 08:34
View user's profile Send private message Reply with quote
TheRawGod



Joined: 14 Sep 2003
Posts: 2
TheRawGod 17 Sep 2003, 18:47
Thanx guys for help. But what about:
Quote:
I'm very interesting in the solution without using any external linker... Just FASM itself. Is it possible?
Post 17 Sep 2003, 18:47
View user's profile Send private message Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo 18 Sep 2003, 07:13
TheRawGod,
If you want to joint me in that adventure, give a look at this thread
http://board.flatassembler.net/topic.php?t=188

There is a lot still to do but IMHO this and the source level debugger are a *must* for fasm.
Post 18 Sep 2003, 07:13
View user's profile Send private message Yahoo Messenger Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex 18 Sep 2003, 18:23
TheRawGod,

You can check the attachment in the post for some linking examples:

http://board.flatassembler.net/topic.php?p=423#423

The examples are about using Fasm with GoLink,Fasm+MS Link

The attachment in this post contains an example of using Fasm with
the static library masm32.lib:

http://board.win32asmcommunity.net/showthread.php?s=&postid=105073#post105073

_________________
Code it... That's all...
Post 18 Sep 2003, 18:23
View user's profile Send private message Visit poster's website Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 06 Nov 2003, 08:56
Is there a way to link a static lib without creating a coff file? I just want to use some big number library for my dll. I do not like the idea of having to get a linker to link it though.
Post 06 Nov 2003, 08:56
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex 06 Nov 2003, 10:37
Roticv,

As you know, a static library is a collection of object files, so there is no way to link a static lib without creating COFF files.

_________________
Code it... That's all...
Post 06 Nov 2003, 10:37
View user's profile Send private message Visit poster's website Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 06 Nov 2003, 11:42
sigh. kinda irritating to make it create coff files then link it. can't there be a more direct path?
Post 06 Nov 2003, 11:42
View user's profile Send private message Visit poster's website MSN Messenger 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.