Page 1 of 1

Convert or create true LIB file?

Posted: Thu Aug 29, 2013 6:04 pm
by jassing
The .lib that is created when you make a dll is just an import library.
I found an example on the forums to convert a dll to lib, but that, as well, is an import lib.

Is there a way to have purebasic generate a .lib file such that I can give the lib to someone else and they can compile/link and have access to my functions (w/o an associated dll)

Re: Convert or create true LIB file?

Posted: Thu Aug 29, 2013 6:13 pm
by ts-soft
If it was possible, would have the Lib dependence to the PureLibs which would be necessary then. However, this is not allowed, therefore a meaningful provide from static Libs impossible.

If you create a userlib with tailbite, this is a real static lib, only compressed with some extra infos, but you can't use it
in another language (after decompression). To many dependencies to pb libs.

Greetings - Thomas

Re: Convert or create true LIB file?

Posted: Thu Aug 29, 2013 6:19 pm
by jassing
Thanks; I hadn't considered the (now obvious) dependency on PB's internal libs.