coffIT - create obj and lib static libraries from PB source!

Developed or developing a new product in PureBasic? Tell the world about it.
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

Thank you srod...another great contribution to the PB coding arsenal.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

29/02/2008. Update - coffIT 1.0 beta 2.
In the event of a successful compilation, coffIT generated log files will now list all external functions / symbols required by the resulting .obj or .lib file etc.
This is useful when hoping to use your resulting static library in other programming languages etc.

This is on top of the coffIT generated Purebasic import wrappers which will list all Windows libraries required by the .lib etc.

The download link is in the second post of this thread.

===================================

*EDIT : you're welcome SFSxOI. :)
I may look like a mule, but I'm not a complete ass.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

04/03/2008. Update - coffIT 2.0 beta 1.
coffIT now offers MSCOFF .obj or MSCOFF static library (.lib) output formats.

I advise reading the relevant parts of the help manual regarding the choice of creating .obj or .lib files, because it is worth understanding how coffIT proceeds here as well as the reason why I would not necessarily suggest using .lib files!

The download link is in the second post of this thread.
I may look like a mule, but I'm not a complete ass.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

09/03/2008. Bugfix.
When creating a static .lib, coffIT (more precisely, Fasm!) would crash out if a 'Data' statement contained repeated addresses of the same procedure.

The download link is in the second post of this thread.
I may look like a mule, but I'm not a complete ass.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

26/05/2008.
coffIT is now compatible with PB 4.2. A certain alteration was required to keep pace with one alteration made to PB's generated ASM code. :)

The download link is in the second post of this thread.
Last edited by srod on Tue May 27, 2008 10:41 am, edited 1 time in total.
I may look like a mule, but I'm not a complete ass.
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

thanks srod :)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

srod wrote:Added a version of coffIT for PB 4.2. The 4.1 version will not function correctly for PB 4.2 and visa versa.
The download links are in the second post of this thread.
I get a 404, but it might just be me ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

No, it's me!

Temporarily removed because with a slight adjustment the PB 4.1 version of coffIT can work with PB 4.2. Silly to have two versions! :)

The link will be back up in a minute.

**EDIT : the link is back up. The new version of coffIT should work with both PB 4.1 and 4.2.
I may look like a mule, but I'm not a complete ass.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Thanks, works now !
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: coffIT - create obj and lib static libraries from PB source!

Post by srod »

20/01/2010.
There is now a version of coffIT for PB 4.4 (x86 only). The PB 4.4 generated ASM had changed ever so very slightly; enough to confuse the hell out of coffIT! :)

This is to be considered a test version at this moment in time as I have not had time to test it as much as I would like.

This new version adds support for all of PB 4.4's new data-types (when creating PB wrappers) including the new hash maps etc.

See the nxSoftware site for the download.

Tested with PB 4.41 RC1 only.
I may look like a mule, but I'm not a complete ass.
eesau
Enthusiast
Enthusiast
Posts: 589
Joined: Fri Apr 27, 2007 12:38 pm
Location: Finland

Re: coffIT - create obj and lib static libraries from PB source!

Post by eesau »

Thanks srod, I owe you one! :)

I'll do some testing and let you know if I run into any trouble.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: coffIT - create obj and lib static libraries from PB sou

Post by netmaestro »

I tried to download CoffIT from the nxSoftware site, the link is broken. I found a version on PureArea that identifies itself as 2.0 but when I try the included examples CoffIT just hangs. I'm using PureBasic 5.0 b3 x86 running on 64bit Windows.
BERESHEIT
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: coffIT - create obj and lib static libraries from PB sou

Post by srod »

Not even sure I could find the source Lloyd, it's been so long since I even looked at it.

It is certainly not maintained anymore and I doubt whether it even still works.
I may look like a mule, but I'm not a complete ass.
User_Russian
Addict
Addict
Posts: 1519
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: coffIT - create obj and lib static libraries from PB sou

Post by User_Russian »

Why does not work this program?
When you create a lib-file reports an error.
There are no exports within this file.
Code from a folder with examples.

Code: Select all

ProcedureDLL Msg(text$)
   MessageBox_(0, @text$, "Message from coffIT!", 0)
EndProcedure 
Using version 2.0, produced in 2008. Other versions of nowhere download.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: coffIT - create obj and lib static libraries from PB sou

Post by netmaestro »

Why does not work this program?
If you look at the post before yours the answer should be in there somewhere.
BERESHEIT
Post Reply