Page 1 of 1
PB Linux compiles with static library?
Posted: Sat Feb 10, 2007 4:56 am
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.

Posted: Sat Feb 10, 2007 3:16 pm
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.
Posted: Sat Feb 10, 2007 6:09 pm
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.

Posted: Mon Feb 12, 2007 12:44 am
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
Posted: Mon Feb 12, 2007 1:32 pm
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.
Posted: Mon Feb 12, 2007 3:57 pm
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
