Page 1 of 1

How to create a static library?

Posted: Thu Feb 25, 2010 12:41 am
by Innesoft
Probably a stupid question, but what are the steps needed to create a static library (.obj or .lib) from purebasic source, that can be linked in with polink? It would be nice to be able to create static libs too, even if it's a bit more work.

Also.. how would you then actually link the files together? I was playing around with PellesC and it doesn't seem to like FASM macros for some reason (bunch of errors about misuse of macros or something).

Can anyone shed some light on this?

What I know so far..
- how to use/code flat assembler
- both files need to be MSCOFF (I think?)
- polink does the magic

Thanks!

Re: How to create a static library?

Posted: Thu Feb 25, 2010 1:05 am
by idle

Re: How to create a static library?

Posted: Wed May 05, 2010 5:29 pm
by Trond
Innesoft wrote:Also.. how would you then actually link the files together? I was playing around with PellesC and it doesn't seem to like FASM macros for some reason (bunch of errors about misuse of macros or something).
:?: You can't use FASM macros with other software than FASM!

Re: How to create a static library?

Posted: Thu May 06, 2010 6:17 am
by Innesoft
yeah this is an old (ish) topic. issues resolved, thanks for the replies though. :wink: