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.
Running Sqlite on Mac (PB4 Beta 1)
Re: Running Sqlite on Mac (PB4 Beta 1)
Great, it works (with the command SQLiteInit("/usr/lib/libsqlite3.dylib") )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
It's really crossplatform
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
Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta

