PB Linux compiles with static library?

Linux specific forum
SkyManager
Enthusiast
Enthusiast
Posts: 339
Joined: Tue Jan 30, 2007 5:47 am
Location: Hong Kong

PB Linux compiles with static library?

Post by SkyManager »

I just want to know if PB (Linux version) can be compiled and linked with a static library or not :?:
So that, it can be self-contained and deployed without separate C library. :shock:
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Do you want to compile you PB code into a static library?
Or do you want to link another static library with your PB project ?

The first is not possible, the second can be done with the Import and ImportC Keywords
just like on Windows.
quidquid Latine dictum sit altum videtur
SmartFish975
New User
New User
Posts: 3
Joined: Sat Feb 10, 2007 12:56 am

Post by SmartFish975 »

I want my application to be delpoyed without the library such as libc++?????.

If all the depending libraries are statically linked with my application, of course it will be bigger but it will save a lot of time for the users to install the required depending libraries.
:oops:
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

If you static compile something like libc++ into your application your application si then governed by the LGPL just like the lib.

Not to mention the executable is huge
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

Sorry that's wrong, linking LGPL code into an application doesn't change it's licence and if legal for closed source applications, only when the library is licenced under the GPL and not the LGPL linking with closed soucre software is illegal, it doesn't matter if linked dynamically or static though.
SkyManager
Enthusiast
Enthusiast
Posts: 339
Joined: Tue Jan 30, 2007 5:47 am
Location: Hong Kong

Post by SkyManager »

Yes, linking a static library should be OK without violation any rights because I can do it with C/C++.

But, is it possible for PB :?:

Can I use PB to generate a object file and link with the static library :?:
Post Reply