Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-08

HELP!

13 messages · 9 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

A.J. Venter
to Alan Mead: You should consider subscribing to the list, at least briefly. I think you are…

There is an Open-Source IDE for FPC written in Delphi called DevPascal, available from http://www.bloodshed.net/devpascal.html I cannot vouch for it's quality as I never program on windows, and thus have never used it.
Others have told me it is quite good though so I thought you might find it interesting.

A

Alan Mead wrote 85 lines
You should consider subscribing to the list, at least briefly. I think you are double-clicking on the free pascal executable which opens a console window, prints some text, and quits. The window stays visible so you can read the text but the session is over. To use Free Pascal this way, you would need to execute the IDE which is like a combined editor, compiler, and debugger. However, I don't use Windows... but I don't think there the Windows IDE is ready yet (list members: is this true??). I think there is third-party Windows IDE, maybe it's in the docs or someone will give you a pointer. To use Free Pascal without the IDE, and really even with the IDE, you will probably want to learn a bit about DOS. You will need to open a DOS window (A.K.A., command window), change directories, edit files, etc. (You can use Notepad or Wordpad or any other editor that edits plain text). To compile the program, I would recommend: fpc -gl -Co -Cr <filename> This will get you started... you need to learn a bit about DOS, I'm afraid, to really feel comfortable running FPC this way. Regarding the path, when you are in a DOS window, you can see the path by typing 'path'. I usually do this (let's assume your FPC executables are installed in c:\fpc\bin\win32): 1. put the current path into a batch file: path > delme.bat 2. edit batch file to make it set the path and add the extra, you want this: set PATH=(old path); c:\fpc\bin\win32 where PATH=(old path) is what's the file when you start editing 3. execute the batch file by typing it's name 4. To make this permanent, copy the set path line to your c:\autoexec.bat ... this is a little tricky if your computer is networked. Networks often re-arrange your path. Hope this helps, -Alan --- Catherine Berridge wrote: --------------------------------- Dear Free Pascal Help! I'm new to this programming business. I think I've successfully installed free pascal but after that I'm lost. Where am I supposed to be typing the commands? I've tried typing into the MSDOS applications things but they all claim to be FINISHED and won't let me. I also don't know how to set the path as commanded by the installation programme. Please help! Cathy P.S I think I'm supposed to mention that I'm not subscribed to the mailing lists. --------------------------------- Protect your PC from e-mail viruses. Get MSN 8 today. _______________________________________________fpc-pascal maillist - __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Do not try to think outside the box. That's impossible. Instead only try to realise the truth....There is no box. A.J. Venter Tech Guru DireqLearn.

Reply by email

Alan Mead
to Catherine Berridge:

You should consider subscribing to the list, at least briefly.

I think you are double-clicking on the free pascal executable which opens a console window, prints some text, and quits. The window stays visible so you can read the text but the session is over.

To use Free Pascal this way, you would need to execute the IDE which is like a combined editor, compiler, and debugger. However, I don't use Windows... but I don't think there the Windows IDE is ready yet (list members: is this true??). I think there is third-party Windows IDE, maybe it's in the docs or someone will give you a pointer.

To use Free Pascal without the IDE, and really even with the IDE, you will probably want to learn a bit about DOS. You will need to open a DOS window (A.K.A., command window), change directories, edit files, etc. (You can use Notepad or Wordpad or any other editor that edits plain text). To compile the program, I would recommend:

fpc -gl -Co -Cr <filename>

This will get you started... you need to learn a bit about DOS, I'm afraid, to really feel comfortable running FPC this way.

Regarding the path, when you are in a DOS window, you can see the path by typing 'path'. I usually do this (let's assume your FPC executables are installed in c:\fpc\bin\win32):

1. put the current path into a batch file:

path > delme.bat

2. edit batch file to make it set the path and add the extra, you want this:

set PATH=(old path); c:\fpc\bin\win32

where PATH=(old path) is what's the file when you start editing

3. execute the batch file by typing it's name

4. To make this permanent, copy the set path line to your c:\autoexec.bat ... this is a little tricky if your computer is networked. Networks often re-arrange your path.

Hope this helps,

-Alan

--- Catherine Berridge wrote:

---------------------------------
Dear Free Pascal

Help!
I'm new to this programming business. I think I've successfully installed free pascal but after that I'm lost. Where am I supposed to be typing the commands? I've tried typing into the MSDOS applications things but they all claim to be FINISHED and won't let me. I also don't know how to set the path as commanded by the installation programme.

Please help!

Cathy

P.S I think I'm supposed to mention that I'm not subscribed to the mailing lists.

---------------------------------
Protect your PC from e-mail viruses. Get MSN 8 today. _______________________________________________fpc-pascal maillist -

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com

Reply by email

L D Blake
to Catherine Berridge:

In reply to your message of August 5, 2003

Show quoted text 5 lines
I'm new to this programming business.  I think I've successfully installed free pascal but after that I'm lost.  Where am I supposed to be typing the commands?  I've tried typing into the MSDOS applications things but they all claim to be FINISHED and won't let me.  I also don't know how to set the path as commanded by the installation programme.

(Grin) Me too, sort of... I programmed professionally in DOS a long time ago and am just now getting back into the Pascal swing of things in Windows. It's quite the steep learning curve.

First I'd suggest you head for: http://www.bloodshed.net/devpascal.html and download the version with the Free Pascal compiler included... It's about half way down the page. This will install the FPC system in a ready to use mode, where you can begin typing up programs in the supplied windows based editor. The compiler should be pre-set to work correctly... so until you are ready to climb into the belly of it you can use the default settings.

You should also take a look at: http://www.friends-of-fpc.org/ where the author has kindly put up a mini-course in pascal programming for windows.

Of course there is the magic word: Read! There are quite a few very good books out there on pascal programming. It's not a difficult language --at least it doesn't read like Klingon Secret Code-- but it does take a bit of learning to really appreaciate it's abilities. The FPC docs and examples (get them from the FPC homepage if you don't have them) are very helpful, especially if you are like me and learn best by tampering with the examples.

There are a couple of pretty good online tutorials for Pascal: http://ourworld.compuserve.com/homepages/TK_Boyd/Tut.htm and http://www.marcocantu.com/epascal/English/default.htm

are both very interesting reads. The second one is a downloadable book (90+ pages), filled with most of the basic information you need about Pascal programming.

Then finally... there really is only one way to truly learn programming... by doing it... as you struggle through each bug, messup and mistake you will learn lessons you won't soon forget (at least I don't). The more you do it the easier it gets. Start with a few simple console programs (i.e. programs that run in dos windows) until you get the hang of the language structure and syntax and then move over to windows once you've written a couple of simple programs of your own, it will save you a *lot* of headaches.

-----
L D Blake

Reply by email

James Mills
to Jilani Khaldi
Jilani Khaldi wrote
Hi All, could someone point me where to find the sqlite.pas for FP to use with Linux Linux?

Excellent someone else that wishes to use sqlite with FPC :) I'll attach all relevant sources... However a TDataset class still needs to be written (although not 100% necessary). I can't write it though, no knowledge of Datasets...

cheers
James

Show quoted text 6 lines
Any hint or examples is welcome. jilani _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
- -Zero Defect Software Engineers Group - ZDSEG - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -If it moves and shouldn't, use the tape.

Reply by email

Matt and Lisa Emson
to James Mills

A TSQLLiteQuery would seem more like it. I actually need to add some basic SQL functionality to a product without going the whole hod and using Interbase (big overhead to process a simple query once in a blue moos) so this is something I might look into. This is something I could justifably do in working hours (unlike source code merge util) so it has more likelihood of happening sooner rather than later.

Installed Gentoo today (mainly to set up dedicated Perforce server and telnet/ftp machine), so I'll give FPC Linux a whirl in the next week or so ;-)

Matt

Earlier message 35 lines
----- Original Message ----- From: "James Mills" To: Sent: Wednesday, August 06, 2003 6:24 PM Subject: Re: [fpc-pascal]SQLITE with FPC > On Wed, Aug 06, 2003 at 07:18:33PM +0200, Jilani Khaldi wrote: > > Hi All, > > could someone point me where to find the sqlite.pas for FP to use with > > Linux Linux? > > Excellent someone else that wishes to use sqlite with FPC :) > I'll attach all relevant sources... However a TDataset class still needs > to be written (although not 100% necessary). I can't write it though, no > knowledge of Datasets... > > cheers > James > > > Any hint or examples is welcome. > > jilani > > > > _______________________________________________ > > fpc-pascal maillist - > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > > -- > - > -Zero Defect Software Engineers Group - ZDSEG > - > -You need only two tools. WD-40 and duct tape. > -If it doesn't move and it should, use WD-40. > -If it moves and shouldn't, use the tape. >

Reply by email

James Mills
to Jilani Khaldi: could someone point me where to find the sqlite.pas for FP to use with Linux Linux? Any…
Jilani Khaldi wrote 5 lines
Hi All, could someone point me where to find the sqlite.pas for FP to use with Linux Linux? Any hint or examples is welcome. jilani

Let me know if you find a TDataSet class that'll work with FPC and Sqlite on Linux. Cause I haven't yet... There are some around on torry.net but they're for delphi using windows. I've asked the author if he could convert it to FPC for linux but without much luck atm.

I say this because you're going to run into pascal string problems like I have.

cheers
James

_______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
- -Zero Defect Software Engineers Group - ZDSEG - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -If it moves and shouldn't, use the tape.

Reply by email

Michael Van Canneyt
to James Mills
James Mills wrote 11 lines
On Wed, Aug 06, 2003 at 07:18:33PM +0200, Jilani Khaldi wrote: > Hi All, > could someone point me where to find the sqlite.pas for FP to use with > Linux Linux? > Any hint or examples is welcome. > jilani Let me know if you find a TDataSet class that'll work with FPC and Sqlite on Linux. Cause I haven't yet... There are some around on torry.net but they're for delphi using windows. I've asked the author if he could convert it to FPC for linux but without much luck atm.

Can you point it out to me ? Normally it should compile as-is.

Michael.

Reply by email

Jilani Khaldi
to James Mills: Let me know if you find a TDataSet class that'll work with FPC and Sqlite on Linux. Cause…
Let me know if you find a TDataSet class that'll work with FPC and Sqlite on Linux. Cause I haven't yet... There are some around on torry.net but they're for delphi using windows. I've asked the author if he could convert it to FPC for linux but without much luck atm.

However I couldn't get SQLITE to work with FPC :-( under Linux while under Winodze it works fine!

I get:
Inconsistency detected by ld.so: dl.minimal.c: 128: realloc: Assertion 'ptr == alloc_last_block' failed!

What can I do to get it work?

Thanks!

ps.
sqlite.pp and sqlitedb.pp are compiled without error.

jilani

Reply by email

Marco van de Voort
to Jilani Khaldi

[ Charset ISO-8859-15 unsupported, converting... ]

Show quoted text 17 lines
> Let me know if you find a TDataSet class that'll work with FPC and > Sqlite on Linux. Cause I haven't yet... There are some around on > torry.net but they're for delphi using windows. I've asked the author if > he could convert it to FPC for linux but without much luck atm. However I couldn't get SQLITE to work with FPC :-( under Linux while under Winodze it works fine! I get: Inconsistency detected by ld.so: dl.minimal.c: 128: realloc: Assertion 'ptr == alloc_last_block' failed! What can I do to get it work? Thanks! ps. sqlite.pp and sqlitedb.pp are compiled without error.

Do you use unit cmem ? If not try to add cmem to the USES line of your mainprogram.

Reply by email

James Mills
to Michael Van Canneyt: Can you point it out to me ? Normally it should compile as-is. Michael.
Michael Van Canneyt wrote 17 lines
On Tue, 12 Aug 2003, James Mills wrote: > On Wed, Aug 06, 2003 at 07:18:33PM +0200, Jilani Khaldi wrote: > > Hi All, > > could someone point me where to find the sqlite.pas for FP to use with > > Linux Linux? > > Any hint or examples is welcome. > > jilani > > Let me know if you find a TDataSet class that'll work with FPC and > Sqlite on Linux. Cause I haven't yet... There are some around on > torry.net but they're for delphi using windows. I've asked the author if > he could convert it to FPC for linux but without much luck atm. Can you point it out to me ? Normally it should compile as-is.

I've given up on finding a TDataset class that'll work with FPC and SQLite. ;)

cheers
James

Show quoted text 7 lines
Michael. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
- -Zero Defect Software Engineers Group - ZDSEG - -You need only two tools. WD-40 and duct tape. -If it doesn't move and it should, use WD-40. -If it moves and shouldn't, use the tape.

Reply by email