Convert or create true LIB file?

Windows specific forum
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Convert or create true LIB file?

Post 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)
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Convert or create true LIB file?

Post 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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Re: Convert or create true LIB file?

Post by jassing »

Thanks; I hadn't considered the (now obvious) dependency on PB's internal libs.
Post Reply