Re: [fpc-pascal] Syntax problem with first unit

2009-04-05 Thread Francisco Reyes
Mehmet Erol Sanliturk writes: Unit and function names DebugPrint are the same . Pascal is case insensitive . Making their cases different does NOT make them different . Please make them different and retry . Thanks. That worked. It may help newcomers like myself if this was mentioned on the

Re: [fpc-pascal] Syntax problem with first unit

2009-04-05 Thread Francisco Reyes
Michael Van Canneyt writes: It may help newcomers like myself if this was mentioned on the ref document. Just double checked and it does not mention this. It most certainly does: see the section on reserved words, first paragraph. In the ref document? Page10? Section 1.3? Just looked there

Re: [fpc-pascal] Syntax problem with first unit

2009-04-05 Thread Francisco Reyes
Tomas Hajny writes: Note that although having the unit named equally to a function, procedure or a variable defined within the unit (or elsewhere) is not really advisable, it is possible, but you need to take scoping rules into account Thanks for the note. I wasn't purposedly trying to do it

Re: [fpc-pascal] Case Sensitivity

2009-04-05 Thread Francisco Reyes
Richard Ward writes: Interestingly, I was going over the lang ref guide last night and found that the case sensitivity is mentioned in section 1.3 for I think from seen this new thread and a few other posts that there is some confusion. When I posted my sample code I had the unit name

Re: [fpc-pascal] Typed Constants vs. Variables

2009-04-05 Thread Francisco Reyes
Richard Ward writes: Where/why would one use a typed constant vs. a variable. i.e. Any time you have a value you want to have in an accessible holder, but want to ensure you will not change it's value by mistake. It seems to me the typed constant is superfluous and can potentially lead

[fpc-pascal] Best method for code reuse?

2009-04-04 Thread Francisco Reyes
What are my options for code reuse? Creating units for common code? Any other method? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Sample unit code

2009-04-04 Thread Francisco Reyes
Could anyone share sample code for a unit? Looking at the ref.pdf I don't really follow it. The examples included are not meaningful to this pascal newbie. :-( Alternative any unit package on the site that may be a good example would be just as great. As I work on a small program I find parts

Re: [fpc-pascal] Best method for code reuse?

2009-04-04 Thread Francisco Reyes
Mattias Gaertner writes: Units is the right way. And even better: create a lazarus package for the new units. Most of what I do is CLI, have not even installed lazarus. Could someone doing CLI use a lazarus package? What advantage of doing a lazarus package over just making it a unit? Right

Re: [fpc-pascal] Sample unit code

2009-04-04 Thread Francisco Reyes
Michael Van Canneyt writes: What is not clear ? For starters I don't really follow the diagrams in the ref document. It probably is some type of formal definition, but I am neither familiar with it, nor seem to get it. Even when I look at a simpler case like procedure declaration I can't

[fpc-pascal] Contributed units section

2009-04-04 Thread Francisco Reyes
I am finding many contributed units with broken links to both the code and the homepage URL. A few thoughts. We could clean all entries to which both the code and the refering URL are broken. We could email the author and give them a week or two, but if we get no replies then we should remove

Re: [fpc-pascal] Sample unit code

2009-04-04 Thread Francisco Reyes
Michael Van Canneyt writes: I'll add more examples. Thanks. I will also go over the existing unit documentation and send you some thoughts and suggestions from a newbie's point of view. Often what is clear to an experienced developer is not so clear for a newcomer. All Free Pascal

[fpc-pascal] Syntax problem with first unit

2009-04-04 Thread Francisco Reyes
Trying my first unit and getting an error I can't figure out. --- unit unit debugprint; Interface function DebugPrint(ProgLevel, CallLevel:integer; MessageIn: string):string; Implementation function DebugPrint(ProgLevel, CallLevel:integer; MessageIn: string):string; begin if ProgLevel=

Re: [fpc-pascal] Pascal arrays vs TStringList.DelimitedText

2009-03-20 Thread Francisco Reyes
Paul Nicholls writes: Hi Francisco, regular arrays can start at whatever index you want: Var MyArray1 : Array[1..3] Of Integer; Thanks for the info and examples. Dynamic Arrays : MyDynamicArray : Array Of Integer; .. These always start with a zero index. This is very usefull

Re: [fpc-pascal] Printed documentation

2009-03-20 Thread Francisco Reyes
Graeme Geldenhuys writes: Anybody know of a printing company in South Africa that will be willing to do a once off print? Searching google for book printing small quantities Returned a decent list. I think it would only be a matter of seeing which one is closer to you or can deliver to your

[fpc-pascal] Pascal arrays vs TStringList.DelimitedText

2009-03-19 Thread Francisco Reyes
Getting back to Pascal.. Aren't pascal arrays 1 based? As I get myself re-acquainted with pascal I am working on a small open source utility. Bumped into something that confused me.. It seems TStringList.DelimitedText produces an array that starts at zero, but from what I can tell regular

Re: [fpc-pascal] Array initialization

2009-03-18 Thread Francisco Reyes
Fantomas writes: As far as I know, global variables are initialised with zeros when an application starts. Gives a warning when I don't initialize it. split.pas(31,55) Warning: Variable Values does not seem to be initialized FillChar(Values,SizeOf(Values),0) That worked. However, for

[fpc-pascal] Array initialization

2009-03-17 Thread Francisco Reyes
On the following URL, http://web.mit.edu/sunsoft_v5.1/www/pascal/lang_ref/ref_data.doc.html#1212, I found some different syntax to initialize an array. Examples there.. var c1 : array[1..10] of char := '123456'; int2 : array[1..100] of integer := [50 of 1, 50 of 2]; Tried those, but didn't

[fpc-pascal] Documentation and posts suggestions [LONG]

2009-03-15 Thread Francisco Reyes
Whether coming from Delphi or a totally new to pascal user there are a couple of changes we could made to the documentation to make it friendlier and to posts we make on the list. I was thinking that including the unit and, if needed, the compiler mode for functions in the documentation may

Re: [fpc-pascal] Documentation and posts suggestions [LONG]

2009-03-15 Thread Francisco Reyes
Tomas Hajny writes: I'm not sure if Francisco meant the Reference Guide or possibly some examples appearing in the other documents; I was looking specifically about the rtl pdf. if it's the latter, a more concrete example would be probably useful. Where are the examples? I recall seem

[fpc-pascal] 2.2.4 for FreeBSD AMD64?

2009-03-04 Thread Francisco Reyes
Is there any way to get 2.2.4 RC1 for FreeBSD AMD64? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] 2.2.4 for FreeBSD AMD64?

2009-03-04 Thread Francisco Reyes
Prince Riley writes: Thanks for the reply. I just checked the list on FreeBSD kernel group on the AMD64 port. The work is getting done by someone on the FreeBSD side? the answer is maybe.. A more definitive answer might be available soon I was told. There is still some delay on the QC for

[fpc-pascal] Creating FPC enabled websites

2009-03-02 Thread Francisco Reyes
Any recommendations on which library to use to create web enabled FPC apps? Have found a few libraries and wonder if anyone has had good success with any of these or otheres. So far I found embeddable webserver http://www.eilers.net/pascal Site doesn't have much info Synapse

Re: [fpc-pascal] Creating FPC enabled websites

2009-03-02 Thread Francisco Reyes
Marco van de Voort writes: It was based on the eliza example iirc. URL/source? Is the easiest way to go using FPC + apache with CGI? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Creating FPC enabled websites

2009-03-02 Thread Francisco Reyes
Travis Siegel writes: Not fpc related, but irie pascal (http://www.irietools.com) has a pascal that is cross platform, and does handle web support quite well. No Postgresql support listed... still seems pretty interesting. ___ fpc-pascal maillist

Re: [fpc-pascal] Creating FPC enabled websites

2009-03-02 Thread Francisco Reyes
Prince Riley writes: Finally, give the advance from CGI based web apps to Web 2.0 (Javascript running in the browser) is there a design rational for running code on the server instead of in the web browser. I think that is almost a religious war type of discussion... Short answer (as it

Re: [fpc-pascal] Creating FPC enabled websites

2009-03-02 Thread Francisco Reyes
Marco van de Voort writes: Sorry, old name, nowadays it is fcl-web. See packages/ Don't see it at http://www.freepascal.org/packages Is there where I should look? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Free Pascal category at SourceForge

2009-02-20 Thread Francisco Reyes
Johannes W. Dietrich writes: Maybe you are interested in a recent feature request I have proposed for the SourceForge site, the creation of a Free Pascal category in their Trove Software map. What is wrong with the pascal category Do we really want a third category to further delute the

[fpc-pascal] CDB in FPC

2009-02-20 Thread Francisco Reyes
Anyone knows if there is a unit/library for CDB in FPC? Found some old links asking the same question several years back, but no answers; wondering if anything has changed. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Free Pascal category at SourceForge

2009-02-20 Thread Francisco Reyes
Francisco Reyes writes: There are 186 apps under the Pascal category and 76 under the Delphi category. Given so few apps I am not sure how it would help to have a third. Correction.. 660 in Delphi. Didn't notice they add filters.. had to drop the Pascal filter. Also noticed

Re: [fpc-pascal] RTL function list?

2008-12-09 Thread Francisco Reyes
Vincent Snijders writes: e.g. http://lazarus-ccr.sourceforge.net/fpcdoc/rtl/index.html I was looking for something like.. AnsiCompareStr Sysutils DaySpan dateutils I have been using the PDF and searching for a function as needed. Example.. when I was looking at fstat the example

Re: [fpc-pascal] RTL function list?

2008-12-09 Thread Francisco Reyes
Marco van de Voort writes: The index of the documentation comes a long way. I have no idea what I was looking at, but went back to the rtl.pdf and I see the index at the beginning with each function. Maybe was looking at the online HTML. The beginning of the PDF is certainly along the lines

Re: [fpc-pascal] RTL function list?

2008-12-09 Thread Francisco Reyes
Vincent Snijders writes: Oops, wrong link, I meant: http://lazarus-ccr.sourceforge.net/fpcdoc/rtl/index-8.html Thanks. That will be very helpfull. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Re: fstat usage

2008-12-08 Thread Francisco Reyes
Francisco Reyes writes: Trying the fstat function and don't seem to be getting the right values for ctime, mtime and atime. -- filedate.pp uses BaseUnix,DateUtils,SysUtils; var info : stat ; begin if fpstat ('myfile.txt' , info) 0 then begin writeln ('Fstat failed . Errno

[fpc-pascal] Re: fstat usage

2008-12-08 Thread Francisco Reyes
Pete Cervasio writes: TDateTime values. Look for UnixToDateTime and DateTimeToUnix in DateUtils. The documentation I have must be old (even though I got it a few days ago from the website). It says those functions are not implemented, yet I was able to use it. Is the time displayed in

[fpc-pascal] Re: fstat usage

2008-12-08 Thread Francisco Reyes
Francisco Reyes writes: Is the time displayed in UTC? Seems to be. Any way to make the time displayed be my timezone? Nevermind that... Was confused because the date was in a different format.. You pointed me in the right direction and finished the program

Re: [fpc-pascal] fstat usage

2008-12-06 Thread Francisco Reyes
Micha Nelissen writes: Francisco Reyes wrote: Trying the fstat function and don't seem to be getting the right values for ctime, mtime and atime. What OS and CPU ? Tried FreeBSD 6.3 on i386, AMD CPU and Opensuse 10.3 64 bits AMD cpu ___ fpc

Re: [fpc-pascal] bitwise generator

2008-12-06 Thread Francisco Reyes
ik writes: I wish to create a firebird generator that does bitwise  generation rather then ordinal generator. I mean: 1 2 4 8 16 32 64 128 etc.. Does anyone have knowledge how to create such generation in firebird ? I am not clear what you are trying to do. You are trying to generate the

[fpc-pascal] fstat usage

2008-12-05 Thread Francisco Reyes
Trying the fstat function and don't seem to be getting the right values for ctime, mtime and atime. -- filedate.pp uses BaseUnix,DateUtils,SysUtils; var info : stat ; begin if fpstat ('myfile.txt' , info) 0 then begin writeln ('Fstat failed . Errno : ' , fpgeterrno) ; halt ( 1 )

Re: [fpc-pascal] Starting out with Free Pascal

2008-11-30 Thread Francisco Reyes
Bill writes: I'm absolutely new to this list... and to Pascal. I was getting pretty good with Foxpro programming when MS bought and then changed the Although I have not tried Lazarus, I am not sure it will compare to what you had in Foxpro. My impression is that Foxpro was higher level and

[fpc-pascal] Problem with list?

2008-10-24 Thread Francisco Reyes
I usually see messages every day or close to it. Have gone a few days without seeing any... And I think this is the second time it is happening. I am just trying to check whether it is an issue with the list or my mail server. ___ fpc-pascal

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-21 Thread Francisco Reyes
Felipe Monteiro de Carvalho writes: Ok, I took a look at this, to have pdf support one needs to buy the professional version of Doc-o-Matic I can run windows from VM.. just have no idea what to use to open a chm. I will just convert to PDF. Have been sick since friday so did not get a

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-19 Thread Francisco Reyes
Felipe Monteiro de Carvalho writes: Which formats currently work under unix (Linux/FreeBSD)? Only Excel 2 Thanks for the update and for the Wiki changes. Based on your schedule when do you think you may get the opendocument format or the Excel 5 working under Linux/FreeBSD? Also, any

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-18 Thread Francisco Reyes
Don't see my response to the list.. Resending.. and updating.. completely obsolete, and I just kept it in the website because I still haven't written docs for the new version. I would recommend against using it. Gotcha. In which operating system did you run it? Excel 5 needs the

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-16 Thread Francisco Reyes
Felipe Monteiro de Carvalho writes: http://wiki.lazarus.freepascal.org/FPSpreadsheet Finally got started on this project. I am a little confused on the functionality of the unit excel2utils; I created a file with the exact code from the site, dropped it in the same directory as

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-06 Thread Francisco Reyes
Michael Van Canneyt writes: If buying is an option: You can buy FlexCel from TMS software. It works with FPC/Lazarus. Thanks for the pointer. 75 EUR is a little steep for what will end up been an open source app. Specially since it will be a text based program. Will try the Lazarus

Re: [fpc-pascal] Spreadsheet library/unit?

2008-10-06 Thread Francisco Reyes
Michael Van Canneyt writes: If you ask me, it can't be hard to write the older text excel file format. Thanks for the links will take a look later. For now I will go with http://wiki.lazarus.freepascal.org/FPSpreadsheet and see how that works out.

[fpc-pascal] Spreadsheet library/unit?

2008-10-04 Thread Francisco Reyes
Searched, but could not find, a library/unit for creating spreadsheets. XLS, open doc.. or anything that would allow to create spreadsheet tabs to later on open with Excel. Trying to see if there is one before trying to create one. ___ fpc-pascal

Re: [fpc-pascal] Can I make this with Free Pascal?

2008-09-23 Thread Francisco Reyes
markweber writes: I suppose you have seen the link I showed. Can I make a sofware like that, without to be a Computer Graphics super nerd, just using this fpImage? Food for thought... Even if you had libraries(built in or otherwise) that did all the magic you will still need to create the

Re: [fpc-pascal] FreeBSD/x86_64 snapshots

2008-09-19 Thread Francisco Reyes
Marco van de Voort writes: Still twice as many failures as the x86 one. Not all are big problems, but some are, like: You mean the Linux x86? What can a newbie like myself do to help? I was thinking to work on a port for FreeBSD of the binary files currently on the site or learn how to

Re: [fpc-pascal] FreeBSD/x86_64 snapshots

2008-09-19 Thread Francisco Reyes
[EMAIL PROTECTED] writes: I will test it!! I need it! Fabio, Basically all you need to do is: + Untar snapshot to your home directory + Create ~/.fpc.cfg : -Fu~/snapshot/lib/fpc/$FPCVERSION/units/$FPCTARGET/* -viwh + Either symlink /snapshot/bin to ~/bin or cd ~/bin ln -s

Re: [fpc-pascal] FreeBSD/x86_64 snapshots

2008-09-18 Thread Francisco Reyes
Marco van de Voort writes: a 26MB snapshot is available at (all binaries, just needs a fpc.cfg) How do we test it? I untared the file. Went into snapshot/bin and tried fpx hello.pas.. Error: ppcx64 can't be executed, error message: Failed to execute ppcx64, error code: 127 I see it in

Re: [fpc-pascal] FreeBSD/x86_64 snapshots

2008-09-18 Thread Francisco Reyes
Marco van de Voort writes: Well, this is the stuff the buildfaq reading was for :-) I printed it and read it on the train.. on the way home. I store a minimal configuration file in ~/.fpc.cfg : -Fu~/snapshot/lib/fpc/$FPCVERSION/units/$FPCTARGET/* -viwh Tried that. Tar examped off ~ so I

Re: [fpc-pascal] Binary compatibility between Intel CPU and PowerPC CPU

2008-09-16 Thread Francisco Reyes
Roland Turcan writes: I need to make our own database engine compatible and other binary files, that user still can use our data from i386 or PowerPC computer. Do you mean you are trying to keep your binary data files compatible between these two architectures? I don't have an answer, but

Re: [fpc-pascal] FPC for FreeBSD AMD64?

2008-09-12 Thread Francisco Reyes
Marco van de Voort writes: It is not done. Those files are the leftovers of a failed attempt. But maybe it is enough to give it a try, maybe sb notices what is wrong. Should I try to build it in a FBSD i386 or AMD64? ___ fpc-pascal maillist -

[fpc-pascal] FPC for FreeBSD AMD64?

2008-09-11 Thread Francisco Reyes
Are there any plans for a FreeBSD AMD64 version? Sometime ago I tried to work on this and since I am not very familiar with FPC yet I could not get very far. If there are currently no set plans for this port, anyone would be willing to do some heavy hand-holding for a new users to work on

Re: [fpc-pascal] ask some reference books

2008-08-12 Thread Francisco Reyes
On 10:29 pm 08/11/08 Galloplus Chang [EMAIL PROTECTED] wrote: Would you please recommand some useful reference books for Free Pascal or other Pascal-related language,such like objectPascal and Have you checked the Documents section in the http://freepascal.org site?

Re: [fpc-pascal] Unit/library for writing data structures to files

2008-08-10 Thread Francisco Reyes
Michael Van Canneyt writes: You can also try the Classes unit if you use object oriented programming. Each component can write itself to stream. Played a little bit with the Classes unit. Don't really see any benefit over justin writing records directly. Am I missing something? Also when

[fpc-pascal] Pascal equivalent to split/explode commands?

2008-08-10 Thread Francisco Reyes
Is there anything simmilar to the functions other languages have split/explode? I will be reading a delimited file, usually tabs, and want to parse it into variables or some form of array. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Unit/library for writing data structures to files

2008-08-10 Thread Francisco Reyes
David W Noon writes: Incidentally, from your first message in this thread, you said you were writing an OLAP application. You might care to look at PostgreSQL as a database manager. It does rather nice OLAP functionality, straight out of the box -- and it's free. Somewhat offtopic... Im a

[fpc-pascal] Unit/library for writing data structures to files

2008-08-09 Thread Francisco Reyes
I looked through the contributed units in the http://freepascal.org site and did not see anything that could take an array or some other data structure and write it to disk. Also the library would need to do the opposite, read from disk into a data structure. I figure before I try and

[fpc-pascal] Pascals unit for associate arrays?

2007-09-10 Thread Francisco Reyes
Is there any unit, or built in functionality, to do the equivalent of perl's associate arrays or Python's dictionaries? What I am trying todo is to parse some lines and to store ocurrences of certain strings. For example string1 string2 string1 string3 string2 What I want to do is to

Re: [fpc-pascal] a book about freepascal [off-topic]

2007-06-18 Thread Francisco Reyes
Daniël Mantione writes: I placed an order at their European distributor http://www.infobooks.pt; this seems the cheapest option until now. I got an an e-mail back in Portugese for my full address information. I'm currently crafting a reply with help of Systran's translator software. Let's see

Re: [fpc-pascal] PASCAL programming for Novice

2007-06-09 Thread Francisco Reyes
Leonardo M. Ramé writes: After reading the tutorial suggested by Daniel, you sould go to http://en.wikipedia.org/wiki/Delphi_(programming_language) and follow a link to object pascal language guide to learn Object Pascal. Looking at http://en.wikipedia.org/wiki/Object_Pascal I see there are

Re: [fpc-pascal] PASCAL programming for Novice

2007-06-09 Thread Francisco Reyes
Leonardo M. Ramé writes: With Object Pascal (and Pascal), you can divide your program in units, then use those units in a program. Thanks for the example! uses HelloWorld; // this includes HelloWorld into your program FreePascal doesn't look in the current directory by default? I had

Re: [fpc-pascal] PASCAL programming for Novice

2007-06-09 Thread Francisco Reyes
Daniël Mantione writes: It doesn't look for .p by default. Rename to .pas or .pp. Ok thanks. Using .p because that is what vim checks for. Will figure out how to change vim to look for .pp for the coloring. ___ fpc-pascal maillist -

Re: [fpc-pascal] PASCAL programming for Novice

2007-06-09 Thread Francisco Reyes
Pete Cervasio writes: Contents of $HOME/.vim/filetype.vim: Thanks. Found that it also works with .pas Changed the programs to that since that is one of the extensiosn the compiler also checks for. ___ fpc-pascal maillist -

Re: [fpc-pascal] Question about some units

2007-06-08 Thread Francisco Reyes
Test writes: I have a source file (test.pp) that uses some units. Where can I get those units? If you didn't notice, I am a newbie :) I tried to compile but it obviously drops an error. uses cgiapp, unix, unixutils, classes, inifiles Does the program compile? If it does it means the

Re: [fpc-pascal] FPC only 32 bits?

2007-06-07 Thread Francisco Reyes
Marco van de Voort writes: Note that all of this is described in the buildfaq already published earlier. I thought I already had cross compiled. I posted earlier what I used: cd fpc gmake distclean # next all on one line gmake all install CPU_TARGET=x86_64 OS_TARGET=freebsd

Re: [fpc-pascal] FPC only 32 bits?

2007-06-07 Thread Francisco Reyes
Henry Vermaak writes: this doesn't look right you've got BINUTILSPREFIX=x86_64-freebsd -INSTALL_PREFIX=... where you should have BINUTILSPREFIX=x86_64-freebsd- INSTALL_PREFIX=... (note the space after freebsd) did you copy in paste or is this a typo? It was a typo. Corrected. Thanks. I

Re: [fpc-pascal] FPC only 32 bits?

2007-06-07 Thread Francisco Reyes
Henry Vermaak writes: no, this is wrong. there is a reason that they have the prefix. you need to get the cross binutils that cross assembles and cross links from your platform to x86_64 freebsd. Ok. you might be able to download them from somewhere or build them with a suitable

Re: [fpc-pascal] FPC only 32 bits?

2007-06-07 Thread Francisco Reyes
Vincent Snijders writes: x86_64/prt0.as:38: Error: `-16(%rbp)' is not a valid 32 bit base/index expression Can you manually assemble prt0.as? Maybe the assembler needs --64 to be in 64 bits mode. In that case you may need to write some wrapper scripts to add that parameter. Even though

Re: [fpc-pascal] FPC only 32 bits?

2007-06-07 Thread Francisco Reyes
Henry Vermaak writes: o.k., no problems, we all gotta learn ;) on which platform are you compiling on at the moment? (sorry, i've lost the story line a bit) Compiling on FreeBSD 6.2 i386 I started this whole project because the FreeBSD port doesn't compile in amd64. I have a laptop which

Re: [fpc-pascal] FPC only 32 bits?

2007-06-07 Thread Francisco Reyes
Marco van de Voort writes: It is possible to create a binary for amd64, but that binary doesn't work, and I don't know why. FreeBSD keeps complaining it can't execute it. Marco, since you were able to do this cross compile once, doesn't that mean you have the cross-binutils for 6.2? Any

Re: [fpc-pascal] FPC only 32 bits?

2007-06-06 Thread Francisco Reyes
Henry Vermaak writes: -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/* -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl To which directory do I point it to? find . -name crt* shows me that the only compiled rtl are in rtl/units/i386-freebsd Was the

Re: [fpc-pascal] FPC only 32 bits?

2007-06-06 Thread Francisco Reyes
Henry Vermaak writes: either change fpc.cfg, or pass the options to ppcrossx64. the relevant lines in fpc.cfg are: Where do I put that file? I only see one file in /usr/local/etc that was installed from the port. The other 2 I see are in fpcbuild instead of the fpc directory. Do I create

Re: [fpc-pascal] FPC only 32 bits?

2007-06-06 Thread Francisco Reyes
Henry Vermaak writes: usually fpc.cfg is configured to find the units, but because you installed the compiled units in a different folder, you will need to either change fpc.cfg How do I tell the compiler where to look for the fpc.cfg? I copied the fpc.cfg from my i386 machine, made the

Re: [fpc-pascal] FPC only 32 bits?

2007-06-06 Thread Francisco Reyes
Henry Vermaak writes: you will also want to tell ppcrossx64 what your binutils prefix is by using -XPx86_64-freebsd-. also make sure that the compiler can find your binutils (put it on the path). Based on some searching it seems I need to build the rtl in the AMD64 machine. After some

Re: [fpc-pascal] FPC only 32 bits?

2007-06-05 Thread Francisco Reyes
Marco van de Voort writes: Then you need to crosscompile (see http://www.stack.nl/~marcov/buildfaq.pdf ) to AMD64, and fix the problems in the end. Done. It is possible to create a binary for amd64, but that binary doesn't work, and I don't know why. FreeBSD keeps complaining it can't

Re: [fpc-pascal] FPC only 32 bits?

2007-06-04 Thread Francisco Reyes
Marco van de Voort writes: Yes. I tried to get it running on AMD64 (and the results are in SVN), but the binary won't run and I don't fully understand why. Is your work on the 2.1.4 Beta or I have to do SVN? In particular I see sources from May 20 at

Re: [fpc-pascal] FPC only 32 bits?

2007-06-04 Thread Francisco Reyes
Marco van de Voort writes: - a starting compiler (2.0.4 or 2.1.4) Have it. - a 2.3.x (development) snapshot or svn checkout, which are afaik on FTP's server. Note that sourceforge only contains releases, not snapshots Which directory? drwxr-xr-x2 1001 1001 4096 Mar

Re: [fpc-pascal] FPC only 32 bits?

2007-06-04 Thread Francisco Reyes
Marco van de Voort writes: - a starting compiler (2.0.4 or 2.1.4) Got 2.0.4 - a 2.3.x (development) snapshot Got from ftp. Then you need to crosscompile (see http://www.stack.nl/~marcov/buildfaq.pdf ) to AMD64, and fix the problems in the end. Got it. Trying to figure out the right

[fpc-pascal] building snapshot

2007-06-04 Thread Francisco Reyes
Although ultimately my goal is to try to cross compile to amd64 from i386 (FreeBSD) I figure I would start easy with a standard compile. The process completed. When I run compiler/utils/fpc It reads: Free Pascal Compiler version 2.0.4 [2007/05/25] for i386 I downloaded the 2.3 snapshot (ot at

[fpc-pascal] Optimization levels

2007-06-04 Thread Francisco Reyes
Looking at the compiler parameters I see: -Oggenerate smaller code -OGgenerate faster code (default) Is the difference in speed/size significant? -O1level 1 optimizations (quick optimizations) -O2level 2 optimizations (-O1 + slower optimizations) -O3

[fpc-pascal] When is make cycle needed?

2007-06-04 Thread Francisco Reyes
Reading the docs I see there is a make cycle target, but I am not sure when it is necessary. For the snapshot build seems that only make all. So when is make cycle needed? Perhaps it is my newbiness, but the explanation in the manual doesn't mean much to me. make cycle is a bootstrap of the

Re: [fpc-pascal] Standby socket servers?

2007-06-03 Thread Francisco Reyes
Marco van de Voort writes: Aren't there three versions already? The original had the later Advanced programming volume as a mere chapter. In the second they are splitted, and the third is fairly recent I don't think it will make much difference which version I got.. since the examples are in

Re: [fpc-pascal] Standby socket servers?

2007-06-02 Thread Francisco Reyes
ik writes: You can create a daemon is several ways, but here are two of them: 1. Create non blocking sockets for the server, and on every new communication open a new thread that will use that connection. Thread or fork? 2. Create a non blocking sockets for the server, and on every new

Re: [fpc-pascal] Standby socket servers?

2007-06-02 Thread Francisco Reyes
Alan Krause writes: The bible on this type of programming is Richard Steven's _Unix Network Programming_. I have both the old version of the book, as well as Volume 1 of the new and revised version. Thanks. Got it on Safari. UNIX Network Programming Volume 1, Third Edition: The Sockets

[fpc-pascal] Standby socket servers?

2007-06-01 Thread Francisco Reyes
After reading the socket samples at http://www.bastisoft.de/pascal/pasinet.html I am starting to get the basics of socket programming. The one thing I don't see in that page is how one would have standby servers. In other words I would like my server program to have some N number of

[fpc-pascal] Socket samples besides the bastisoft site?

2007-05-30 Thread Francisco Reyes
Can't find examples for socket programming besides http://www.bastisoft.de/pascal/pasinet.html Does anyone knows of any other samples/links? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] RTL documentation

2007-05-28 Thread Francisco Reyes
Catalin Zamfir Alexandru writes: Ya, Pascal's better than C :P. That's my personal oppinion. And Free Pascal is the cherry on top. In theory the project I am planning to do, Postfix policy server, could have been done in Python (another language I like) but I have been looking for an excuse

[fpc-pascal] Features and/or units to look for?

2007-05-28 Thread Francisco Reyes
I finished reading my old pascal book and reading up on PDFs from the site. Was wondering how would I find features unique to FPC that my old Pascal book would not have... Basically features that I would not to look for, but that are helpfull. ie.. I remembered exception handling (try

[fpc-pascal] RTL documentation

2007-05-27 Thread Francisco Reyes
Is there a separate list for documentation? In particular I was wondering if there was any interest in adding some examples to the Socket section in the RTL documentation. As I am getting re-familiarized with pascal I am finding examples in the RTL library to be most helpfull. However when I

[fpc-pascal] FreeBSD binary compatibility

2007-05-27 Thread Francisco Reyes
I was trying out a couple of examples and figured I would try to see how portable the binaries were. Compiled a trivial program in FreeBSD 6.2 Stable and copied it to a 4.9 machine. The binary worked. Is that commontly the case? ie the binaries can be run accross different FreeBSD versions?

[fpc-pascal] Server software in pascal?

2007-05-25 Thread Francisco Reyes
I have not used Pascal in a while, but I am exploring whether to use pascal for a tcp server software. In particular it would be a policy server for postfix mail transfer agent. Any comments/suggestions/pointers for the following will be greatly appreciated: * sending data to syslog *

Re: [fpc-pascal] Server software in pascal?

2007-05-25 Thread Francisco Reyes
Daniël Mantione writes: Check the sockets unit documentation. You'll be up and running in no time. There are also good OOP frameworks like Synapse, LNET and Indy, which provide complete implementations of common network protocols. Do you recommend any of them? I need SMTP since it will be a

Re: [fpc-pascal] Server software in pascal?

2007-05-25 Thread Francisco Reyes
Daniël Mantione writes: All toolkits have an SMTP class. You can also do smtp very easy with readln/writeln. It's 100% your preference. Thanks. Will look for examples and try before asking any more questions. Have to get the rust off my pascal. :-) You will find various references to them,