Compile a PB into PB library
-
- Enthusiast
- Posts: 339
- Joined: Tue Jan 30, 2007 5:47 am
- Location: Hong Kong
Compile a PB into PB library
It would be nice to compile PB procedures into a standard PB library so that programmer can easily build up their own library for fast application programming.
I know that we can use ASM or C/C++ to do that.
But this is a very funny logic : I thought most PB users hate coding in ASM or C/C++ and that they choose to use Basic. If PB users are good at ASM or C/C++, they will simply use C/C++ and they will forget PB.
I do not want to use third party library such as Tailbite!
I know that we can use ASM or C/C++ to do that.
But this is a very funny logic : I thought most PB users hate coding in ASM or C/C++ and that they choose to use Basic. If PB users are good at ASM or C/C++, they will simply use C/C++ and they will forget PB.
I do not want to use third party library such as Tailbite!
Re: Compile a PB into PB library
Why not? as this allows you to do exactly this.SkyManager wrote:I do not want to use third party library such as Tailbite!

- Hroudtwolf
- Addict
- Posts: 803
- Joined: Sat Feb 12, 2005 3:35 am
- Location: Germany(Hessen)
- Contact:
Re: Compile a PB into PB library
> Why not?
Tailbite is too hard to set up (I got too many errors to bother with it).
Also there is no guarantee of future versions if the author gives up on it.
A native PureBasic "Create library" menu command is just so much easier.
Tailbite is too hard to set up (I got too many errors to bother with it).
Also there is no guarantee of future versions if the author gives up on it.
A native PureBasic "Create library" menu command is just so much easier.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
-
- Enthusiast
- Posts: 339
- Joined: Tue Jan 30, 2007 5:47 am
- Location: Hong Kong
-
- Addict
- Posts: 2344
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
-
- Enthusiast
- Posts: 731
- Joined: Wed Apr 21, 2004 7:12 pm
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
As sad an eventuality as this is, we must face the fact that Tailbite's future development will have to continue without the participation of the original author. I hope the PureBasic team will see fit to take it on and bring it under the Fantaisie umbrella, but in the end it's entirely up to them to decide whether that's something they want to do.El_Choni wrote:I haven't had time for coding at all lately, and I doubt I'll have any in the future.
Speaking only for myself, I can say without reservation that I'd be glad to pay for a library compiler as an add-on product to PureBasic, and I'm sure I'm not alone in this view.
To El_Choni: Thank you very much for creating and supporting this tool over the past years. It truly is a fine piece of work and much appreciated by a great many PureBasic coders. I wish you all the very best in the future.
BERESHEIT
With PB4 of course we find that using the threadsafe switch causes different versions of certain library routines to be linked in with the final executable. Consequently, we find ourselves having to create multiple versions of our tailbitten libs just to cater for the different switches. Of course, it is possible to create one tailbitten lib which caters for ansi/unicode/threadsafe etc. but this does involve a little more work for the creator of the lib.
I just prefer to use source code include files and that way remain completely in control.
In a way I wish PB generated threadsafe code without exception, at least this way we wouldn't have to worry about the different library versions. Dito for Unicode. Sure it might slow some routines down a little, but hey there's always inline asm etc.
I just prefer to use source code include files and that way remain completely in control.
In a way I wish PB generated threadsafe code without exception, at least this way we wouldn't have to worry about the different library versions. Dito for Unicode. Sure it might slow some routines down a little, but hey there's always inline asm etc.
I may look like a mule, but I'm not a complete ass.