[fpc-pascal]Binutils 2.18 cross win32-linux

2008-06-06 Thread Wanderlan Santos dos Anjos
Hello All, I'm doing crosscompiling from Win32 to Linux. I use Binutils 2.15 but this version gives error when cthreads unit is referred, probably because version 2.15 is too old. Where can I download Binutils 2.18 cross? -- Att, Wanderlan Santos dos Anjos (061) 3345-5496; 9133-3804

Re: [fpc-pascal] Date conversion question

2008-06-06 Thread Graeme Geldenhuys
I would say the easiest would be to extract the different parts: Year, Month, Day, Hour, Min, Sec and then use EncodeDateTime() to return a TDateTime type. I have implemented (with unit tests) the last format (ISO 8601) in the tiOPF project. I use that for storing my dates in a database. See the

Re: [fpc-pascal] Date conversion question

2008-06-06 Thread Marco van de Voort
I have a little project in which I need to convert various string encoded in various date format to TDateTime. For the same date, I'll have: In the upcoming 2.2.2, there will be a scandatetime routine in datetuils. One could copy this code also to 2.2.0 projects though. Search for

[fpc-pascal] Date conversion question

2008-06-06 Thread [EMAIL PROTECTED]
Hello, I have a little project in which I need to convert various string encoded in various date format to TDateTime. For the same date, I'll have: '2008-05-10 21:49:21' '2008:05:10 21:49:21' '2008-05-10T19:49:21Z' I am no expert with date manipulation so I am asking: For the first type of

Re: [fpc-pascal] x86_64 assembler

2008-06-06 Thread Tomas Hajny
On Thu, June 5, 2008 15:29, mm wrote: Jonas Maebe a écrit : How can one declare a constant of type qword with the INTEL assembler? I am using FPC 2.2.0 and the mnemonic dq stops the compilation with the message Error: Unrecognized opcode DQ. As far as I can see, that's not possible at this

Re: [fpc-pascal] Date conversion question

2008-06-06 Thread [EMAIL PROTECTED]
Search for scandatetime in http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/rtl/objpas/dateutil.inc?view=markup Have a look at the documentation for formatdatetime and the comments in the source to get an idea how to use it. ScanDateTime('?MM?dd?hh?nn?ss',str); // seems to work

[fpc-pascal] libmilter + freepascal

2008-06-06 Thread TOUZEAU DAVID
Dear I'm trying to find examples using libmilter (sendmail milter) with freepascal. Does anybody have usefull links or code with it ? best regards -- David Touzeau -- Linux Ubuntu 7.04 feisty FreePascal-Lazarus,perl,delphi,php artica for postfix management console

Re: [fpc-pascal] x86_64 assembler

2008-06-06 Thread mm
Tomas Hajny a écrit : On Thu, June 5, 2008 15:29, mm wrote: Jonas Maebe a écrit : How can one declare a constant of type qword with the INTEL assembler? I am using FPC 2.2.0 and the mnemonic dq stops the compilation with the message Error: Unrecognized opcode DQ. As far as I can see, that's

[fpc-pascal] code speed and size on various platforms

2008-06-06 Thread Mattias Gaertner
I would like to create a shot overview of the code quality of FPC. Please help to complete the list: Under i386 code size and speed is similar to Delphi and gcc (except for some synthetic benchmarks). Under x86_64 pentium code size and speed is similar to gcc (exc...). Under x86_64 amd code

Re: [fpc-pascal] x86_64 assembler

2008-06-06 Thread mjm
Tomas Hajny a écrit : On Fri, June 6, 2008 17:19, mm wrote: I thought to use hexadecimal code to replace the mnemonic dq itself but 1) I don't know its code and 2) I am not even sure it would work. There's no hexadecimal code for 'dq' (or any other d?) - this directive simply tells the

Re: [fpc-pascal] x86_64 assembler

2008-06-06 Thread mm
Tomas Hajny a écrit : On Fri, June 6, 2008 17:19, mm wrote: I thought to use hexadecimal code to replace the mnemonic dq itself but 1) I don't know its code and 2) I am not even sure it would work. There's no hexadecimal code for 'dq' (or any other d?) - this directive simply tells the

[fpc-pascal] linking to dll still fails

2008-06-06 Thread Marc Santhoff
Hi, I still have no success in linking against a dll on windows. The dll import source looks like this: ... {$linklib 'hdf5'} ... function H5open:herr_t;{$ifdef BSD}cdecl{$endif}{$ifdef Win32}stdcall{$endif};external; function H5close:herr_t;{$ifdef BSD}cdecl{$endif}{$ifdef