Add the creation of static libraries (lib) and drives (sys)
-
- Addict
- Posts: 1519
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Add the creation of static libraries (lib) and drives (sys)
Offered to add the creation of static library (lib), the object files (obj) and drivers (sys) at least in the Windows version.
If you can create a dynamic library (dll), then I think that does not have any problems with the creation of static (lib).
Drivers kernel mode (sys) can be created using slightly modified PureBasic. http://www.purebasic.fr/english/viewtop ... 14&t=49195
Why then is not officially add this feature in PureBasic?
If you can create a dynamic library (dll), then I think that does not have any problems with the creation of static (lib).
Drivers kernel mode (sys) can be created using slightly modified PureBasic. http://www.purebasic.fr/english/viewtop ... 14&t=49195
Why then is not officially add this feature in PureBasic?
Re: Add the creation of static libraries (lib) and drives (s
+1 for static libs
Windows 11, Manjaro, Raspberry Pi OS


Re: Add the creation of static libraries (lib) and drives (s
The problem with static libs is, all pb functions are included
and usable by any other user, without a license of PB.
If the lib doesn't include the pb functions, he works only
with PB and this makes no sense for me.
and usable by any other user, without a license of PB.
If the lib doesn't include the pb functions, he works only
with PB and this makes no sense for me.
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.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: Add the creation of static libraries (lib) and drives (s
yes, but that also applies to DLL's, except you have the telltale of the DLL in the package.
Re: Add the creation of static libraries (lib) and drives (s
In a DLL i can see only exported functions, in a static lib i can see and use all functions.
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.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Add the creation of static libraries (lib) and drives (s
Wouldn't it be possible to output a static lib that only matched the DLL functions?In a DLL i can see only exported functions, in a static lib i can see and use all functions.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: Add the creation of static libraries (lib) and drives (s
You can easy dump all symbols, not only exported symbols!
You can use PODUMP or POLIB. I use a Plugin for TotalCommander.
There is no way to hide the symbols in a static lib.
You can extract what ever you requires from lib with explode.
You can use PODUMP or POLIB. I use a Plugin for TotalCommander.
There is no way to hide the symbols in a static lib.
You can extract what ever you requires from lib with explode.
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.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: Add the creation of static libraries (lib) and drives (s
How does PowerBasic create static libs? They are notorious defenders of the bottom line...
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: Add the creation of static libraries (lib) and drives (s
I think PowerBasic uses only API and no Libs, like PureBasic does.
FreeBasic for example requires libbfd.a as own lib. In a Freeware
no problem.
PB requires some libs (the libs in pb and the userlibs are all static libs, only compressed),
stringmanager and so on. A static lib, create with pb, without the stringmanager can
not use any string
This have nothing to do with notorious defenders
TailBite creates Static Libs, but without including the Libs from PB.
This libs doesn't work in other languages, so this is available but
useless.
FreeBasic for example requires libbfd.a as own lib. In a Freeware
no problem.
PB requires some libs (the libs in pb and the userlibs are all static libs, only compressed),
stringmanager and so on. A static lib, create with pb, without the stringmanager can
not use any string

This have nothing to do with notorious defenders

TailBite creates Static Libs, but without including the Libs from PB.
This libs doesn't work in other languages, so this is available but
useless.
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.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: Add the creation of static libraries (lib) and drives (s
there's an application that converts DLL's to static lib's http://www.binary-soft.com/dll2lib/dll2lib.htm but way too expensive, Sapero from the ionic wind forums had a free utility to convert a DLL into a static lib, but I never tried it and don't know how good it was.
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Re: Add the creation of static libraries (lib) and drives (s
Iirc, Powerbasic static libs (SLL) are only usable with Powerbasic.skywalk wrote:How does PowerBasic create static libs? They are notorious defenders of the bottom line...
These are not standard COFF lib files.
I think it was a sort a DLL loader from memory, like Joachim Bauch's tools, and not a real converter.jack wrote:...Sapero from the ionic wind forums had a free utility to convert a DLL into a static lib, but I never tried it and don't know how good it was.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Re: Add the creation of static libraries (lib) and drives (s
If I only want to use the lib in PB?
Is Tailbite documented and approved by PureBasic license?
I can see advantage of reducing code required to compile while debugging.
But I don't want to use a static lib if the process is unsupported.
It should be native.
Is Tailbite documented and approved by PureBasic license?
I can see advantage of reducing code required to compile while debugging.
But I don't want to use a static lib if the process is unsupported.
It should be native.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
-
- Addict
- Posts: 2344
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Re: Add the creation of static libraries (lib) and drives (s
Obfuscation would be a solution: when compiling the static lib, rename all pb internal symbols to something random. Besides this, there must be some kind of export table which you can modify, even for libs.
bye,
Daniel
Daniel
Re: Add the creation of static libraries (lib) and drives (s
purebasic compile the code as one object, very annoying to produce a decent lib.
Re: Add the creation of static libraries (lib) and drives (s
This is not correct, pblibs and userlibs a splittet in many objects.xorc1zt wrote:purebasic compile the code as one object, very annoying to produce a decent lib.
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.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
