Running Sqlite on Mac (PB4 Beta 1)

Mac OSX specific forum
CSAUER
Enthusiast
Enthusiast
Posts: 188
Joined: Mon Oct 18, 2004 7:23 am
Location: Germany

Running Sqlite on Mac (PB4 Beta 1)

Post by CSAUER »

It is not often, that someone is posting helpful stuff without API calls. Here is one and its been tested on my Mac Mini G4 with OS X 10.4 together with PB4 Mac Beta 1.
http://www.purebasic.fr/english/viewtopic.php?t=27036

You don't need a Sqlite.dll as it is shipped already with OS X 10.4
Just run the code.

P.S. I have some problems with copy and paste code from this forum to Mac IDE as it seems that it adds some invisible line-ending information which lets compiler say: "Garbage at the end of line".
If you key in manually or import code via Windows and run it on Mac IDE, it will work correctly.
User avatar
michel51
Enthusiast
Enthusiast
Posts: 290
Joined: Mon Nov 21, 2005 10:21 pm
Location: Germany

Re: Running Sqlite on Mac (PB4 Beta 1)

Post by michel51 »

CSAUER wrote:It is not often, that someone is posting helpful stuff without API calls. Here is one and its been tested on my Mac Mini G4 with OS X 10.4 together with PB4 Mac Beta 1.
http://www.purebasic.fr/english/viewtopic.php?t=27036
Great, it works (with the command SQLiteInit("/usr/lib/libsqlite3.dylib") )
It's really crossplatform :D
P.S. I have some problems with copy and paste code from this forum to Mac IDE as it seems that it adds some invisible line-ending information which lets compiler say: "Garbage at the end of line".
If you key in manually or import code via Windows and run it on Mac IDE, it will work correctly.

Try this: "quote" the post, click into the source, select all, copy and past ist into an new pb-window (may be you can select a part, I don't tried). Then delete the unused lines and it works. I've tried it with this source, no "Garbage at the end of line" .

Hope it works on your Mac in the same way :)
michel51

Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
johnfinch
User
User
Posts: 45
Joined: Thu May 11, 2006 1:45 am
Location: florida
Contact:

Post by johnfinch »

Thanks for letting us know! These are great routines.
Leopard-parallels-XP-Vista
Post Reply