Create Static (pb specific) lib file

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Create Static (pb specific) lib file

Post by jassing »

A question(resolved) about generating a static lib from pb to share (dependency on PB's libraries is the issue) -- but what about one to create a lib specific to PB (or heck, even a standard .lib that we could share with other pb users or (more importantly) use internally.

To create a 4th type of file (the 3 being console/window/shared), "a static PBLIB" such that PB users could easily swap a library around and have pb link against it....

That way I could create a lib (for my own use) of my common functions; and when I build an exe, it links against those functions (similar to the way Import works now) Except I wouldnt' need a dll.

Since it's all happening in the PB world; PB-dependency libraries would not be an issue.
lakomet
User
User
Posts: 53
Joined: Mon Apr 04, 2011 3:56 am
Location: Russia,Angarsk

Re: Create Static (pb specific) lib file

Post by lakomet »

+1
Linux Mint Maya(Mate), x86, PureBasic 5.00(5.10b1)
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Create Static (pb specific) lib file

Post by ts-soft »

What is the difference to a userlib? I can't see a difference.
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
User_Russian
Addict
Addict
Posts: 1518
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: Create Static (pb specific) lib file

Post by User_Russian »

ts-soft wrote:What is the difference to a userlib? I can't see a difference.
This is not an official extension and userlib dependent on on the version of PB.
B userlib installs in PB and can not be used for one particular project, as lib-file.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Create Static (pb specific) lib file

Post by ts-soft »

User_Russian wrote:and userlib dependent on on the version of PB.
and this is unchangable, if the lib based on PB :wink:
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
Post Reply