Page 1 of 2
Tailbite --> Lib
Posted: Thu Feb 09, 2006 1:44 am
by Dare2
Just wondering if TailBite will be able to create .LIB files for version 4?
Be neat if it can create .LIB files!
Posted: Thu Feb 09, 2006 2:12 am
by ts-soft
Use this for TailBite: Arguments = "%FILE" /KEEPSRCFILES /WRITEBATCH
TailBite creates *.lib
you find the lib in "Library sources"
Posted: Thu Feb 09, 2006 2:29 am
by NoahPhense
ts-soft wrote:Use this for TailBite: Arguments = "%FILE" /KEEPSRCFILES /WRITEBATCH
TailBite creates *.lib
you find the lib in "Library sources"
I wasn't aware that TailBite was pb4 compatible? Shall I add it back into
my pb4 install?
- np
Posted: Thu Feb 09, 2006 2:35 am
by ts-soft
TailBite < = 1.3 not compatible with PB 4
but there is no new feature for this to integrate in "Tailbite 4"
Posted: Thu Feb 09, 2006 2:54 am
by NoahPhense
ts-soft wrote:TailBite < = 1.3 not compatible with PB 4
but there is no new feature for this to integrate in "Tailbite 4"
So then I should put my 3.94 structure back on the drive until TB goes
4.0 compatible?
- np
Posted: Thu Feb 09, 2006 3:05 am
by ts-soft
tailbite creates allways a lib file (normally deleted after creation), but with
"TailBite 4" and PB 4, we can use the lib file with Import
Posted: Thu Feb 09, 2006 3:23 am
by Shannara
? But it also creates normal pb libraries as well, thus since both are libraries, both can be used ...... what advantages are there of one over the other?
Posted: Thu Feb 09, 2006 3:33 am
by NoahPhense
ts-soft wrote:tailbite creates allways a lib file (normally deleted after creation), but with
"TailBite 4" and PB 4, we can use the lib file with Import
TailBite 4 ?
Posted: Thu Feb 09, 2006 3:47 am
by Dare2
Hi ts-soft,
Thanks for the info. Can you humour me and tell me if I have this right (when tailbite is V4-able):
1: We create a Pure-Lib as always.
2: We also get a .LIB file.
3: ? We stick the Pure-Lib and .LIB into a folder of our own choice ?
4: We compile using Import, so Pure uses this to reference the Pure-Lib
5: PureBasic grabs the desire routines and builds into our exes
or:
3: We still stick the Pure-Lib (and now the .LIB) into userlibraries?
Either way (or any other) it is a great way to document dependencies!
Posted: Thu Feb 09, 2006 4:07 am
by NoahPhense
Is there currently no way to create our own userlibraries.
Other than C?
I just want to be able to store my own full libs in my Subsystem(s) ..
So that when I'm coding, I can be utilizing my libraries.
In the past, the only way I have been able to even create my own libs
is to use TailBite.
I don't want to carry around dll's.. unless of course, it is a DLL that I am
selling..
- np
Posted: Thu Feb 09, 2006 4:21 am
by ts-soft
Sorry, for my english
@Dare2
we can use the userlib AND/OR the lib
ts-soft wrote:Use this for TailBite: Arguments = "%FILE" /KEEPSRCFILES /WRITEBATCH
TailBite creates *.lib
you find the lib in "Library sources"
TailBite create in "Library sources", for Example:

This RCDATA.lib can be used by Import, but in this time is not compatible with PB 4 or test it!
Posted: Thu Feb 09, 2006 5:39 am
by Dare2
ts-soft,
Thank you!
As proof of concept:
Did this: (Using
3.94)
Code: Select all
ProcedureDLL AttachProcess(Instance)
EndProcedure
ProcedureDLL DetachProcess(Instance)
EndProcedure
ProcedureDLL m2(v.l)
ProcedureReturn v * 2
EndProcedure
ProcedureDLL dV(v.l, m.l)
ProcedureReturn v / m
EndProcedure
TailBite it, using the manager and "Keep Source Files" checked.
Went to userlibraries, deleted the userlibrary it created. So no pure lib
anywhere.
Went to My 3.94 folder\TailBite\Library sources\testTailBiteLib.lib
Copied the .LIB to a version 4.00 playpen area.
Did this (Using
4.00 Beta1)
Code: Select all
Import "C:\code\PureBasic_4\TestImport\testTailBiteLib.lib"
Mul2(v.l) As "PB_m2"
DivVal(a.l,b.l) AS "PB_dV"
EndImport
Debug Mul2(2)
Debug DivVal(9,3)
Debug DivVal(2,6)
JackPot.
Now it used no Pure libraries, really, so I minimised the chances of it jacking up .. and there are some bits there that I need to think through like the @nn .. and this is not version 4 compatible for a lot of things ... but .....
JACKPOT!
Wooo Hoooo!
Thanks again ts-soft and El_Choni!
Man oh man, I am jumping around like a maniac. This is so good.
In version 4, userlibs should be imported or else! Under pain of death - or worse - free updates removed! Just to document the fact they are used, if nothing else.
Posted: Thu Feb 09, 2006 6:18 am
by ts-soft
I have installed the userlib PBOSL_LoadDllMemory (it's written in c)
by createing you find the lib like: "PBOSL_LOADDLLMEMORY.lib"
I have importet this lib with Import at same time userlib installt (only
changed names). It runs without problems
Posted: Thu Feb 09, 2006 6:22 am
by Shannara
Okay .. it is safe to assume there are no advantages of a "lib" file over a purelib file?
Posted: Thu Feb 09, 2006 6:26 am
by ts-soft
Shannara wrote:Okay .. it is safe to assume there are no advantages of a "lib" file over a purelib file?
No it's the same
When your UserLib use an other Userlib isn't good
You can import the Lib from other Userlib, in your Lib, no problems!