How to create a static library?
Posted: Thu Feb 25, 2010 12:41 am
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!
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!