flat assembler
Message board for the users of flat assembler.

Index > Windows > How to use Lib file join my program?

Author
Thread Post new topic Reply to topic
hihelp



Joined: 15 Dec 2011
Posts: 17
hihelp 16 Dec 2011, 21:06
Hello friends....
I've a problem with how to use lib file.

1)how to use C/C++ build lib file to join my fasm program?
2)how to create static library(lib) file by fasm assembler?
3)have some special requirements?

Thanks for a lot of friends.

_________________
This guy is clever, what also did not leave.
Post 16 Dec 2011, 21:06
View user's profile Send private message Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 16 Dec 2011, 22:02
1) You don't have to use lib files for FASM.
2) check this http://board.flatassembler.net/topic.php?t=12904
3) special requirements for what?
Post 16 Dec 2011, 22:02
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20451
Location: In your JS exploiting you and your system
revolution 17 Dec 2011, 01:04
hihelp wrote:
Hello friends....
I've a problem with how to use lib file.

1)how to use C/C++ build lib file to join my fasm program?
2)how to create static library(lib) file by fasm assembler?
3)have some special requirements?

Thanks for a lot of friends.
Check with your linker program on how to build libraries. Each linker has its own way of doing things so once you have decided upon which linker you are going to use then check the documents for how to make the lib files.

Generally with fasm it is like this:
Code:
format coff

public function1
public function2

function1:
  ;do stuff
  ret

function2:
  ;do other stuff
  ret    
The you assemble to an obj file, and then use your linker to create the lib file.


Last edited by revolution on 17 Dec 2011, 08:39; edited 1 time in total
Post 17 Dec 2011, 01:04
View user's profile Send private message Visit poster's website Reply with quote
hihelp



Joined: 15 Dec 2011
Posts: 17
hihelp 17 Dec 2011, 06:21
@Overflowz
Thanks for reply.I didn't seen that posts.Sorry...
@revolution
Thanks,I know how to write now.
Post 17 Dec 2011, 06:21
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.