Re: [fpc-pascal] Linux Linking Error]

2007-06-04 Thread Rick Seiden
(I sent this earlier today, but haven't seen it on the list. It's been over 5 hours, so I'm resending. I'm sorry if you end up getting both!) From the FPC IDE. I have not installed Lazarus at this point. I'm not sure how to compile from the command line. I'm sorry, I'm a lame Windows perso

Re: [fpc-pascal] Get Timestamp since 1970 (linux)

2007-06-04 Thread patrick feillant
Hello, You can do that with ? MilliSecondsBetween Calculate the number of whole milliseconds between two DateTime values. between encodedatetime(1970,1,1,0,0,0,0) and Present I don't test, but it's probably o

Re: [fpc-pascal] gdk_window_get_frame_extents

2007-06-04 Thread jasj
> > > Yes and no. The correct fix is to declare grect as GdkRectagle, as you > need to pass to the function the pointer to an allocated record. > Surely you're right. Jan Je/lowicki --

[fpc-pascal] [Admin] HTML email

2007-06-04 Thread Jonas Maebe
(I sent this earlier today, but haven't seen it on the list. It's been over 5 hours, so I'm resending. I'm sorry if you end up getting both!) The reason is that the mail also contained an html version. All such mails are held for moderator approval because it stops most spam and virus

Re: [fpc-pascal] Get Timestamp since 1970 (linux)

2007-06-04 Thread TOUZEAU DAVID
Many thanks patrick i will try it ! patrick feillant a écrit : Hello, You can do that with ? MilliSecondsBetween Calculate the number of whole milliseconds between two DateTime values.

Re: [fpc-pascal] Get Timestamp since 1970 (linux)

2007-06-04 Thread Henry Vermaak
On 04/06/07, TOUZEAU DAVID <[EMAIL PROTECTED]> wrote: Dear Is there a function that help me to calculate seconds since 1970 year ? exactly the same of this command : /bin/date +%s -d 20070103 this will do what you want?: function LocalToEpoch( year: Word; month: Word; day: Word; hour:

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 http://sourceforge.net/project/showfiles.

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

2007-06-04 Thread Marco van de Voort
> 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 > http://sourceforge.net

[fpc-pascal] Using AnsiString/WideString with C Library

2007-06-04 Thread gmjimen
Hello. I'm writing a wrapper for a C library that allows the use of UNICODE. I did wrappers for C libraries but using only ASCII strings. I did: UNIT example; INTERFACE PROCEDURE Proc (Text: ANSISTRING); IMPLEMENTATION { Wrapper for the C function. } PROCEDURE _C_Proc_ (Text: PCHAR); CDEC

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

2007-06-04 Thread Florian Klaempfl
Marco van de Voort schrieb: >> 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

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

2007-06-04 Thread Marco van de Voort
> Marco van de Voort schrieb: > > So you need: > > > > - a starting compiler (2.0.4 or 2.1.4) > > - a 2.3.x (development) snapshot or svn checkout, which are afaik on FTP's > > server. Note that sourceforge only contains releases, not snapshots > > > > Then you need to crosscompile (see http://

Re: [fpc-pascal] Using AnsiString/WideString with C Library

2007-06-04 Thread Marco van de Voort
> This way I can use Pascal strings with C functions. > > I've read the documentation and I find that I can use WIDESTRING in a similar > way, but I'm not sure which character codification WIDESTRING uses UCS2 which is a subset (more like a draft for) of UTF16. Maybe Microsoft has fixed this to

Re: [fpc-pascal] Using AnsiString/WideString with C Library

2007-06-04 Thread Daniël Mantione
Op Mon, 4 Jun 2007, schreef [EMAIL PROTECTED]: > I've read the documentation and I find that I can use WIDESTRING in a similar > way, but I'm not sure which character codification WIDESTRING uses. The C > library uses 'standard C strings' (that is 'char *string;') an there's a > function to defi

Re: [fpc-pascal] Get Timestamp since 1970 (linux)

2007-06-04 Thread Seweryn Walentynowicz
On Mon, Jun 04, 2007 at 09:27:55AM +0200, patrick feillant wrote: > MilliSecondsBetween > Maybe simpler Secondsbetween() ? :o) > 2007/6/4, TOUZEAU DAVID <[EMAIL PROTECTED]>: > > > >Is there a function that help m

Re: [fpc-pascal] gdk_window_get_frame_extents

2007-06-04 Thread Airr
On Mon, 4 Jun 2007 03:37:51 -0300 "Flávio Etrusco" <[EMAIL PROTECTED]> wrote: > On 6/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > fpc header for the gdk function is > > > > procedure gdk_window_get_frame_extents(window:PGdkWindow; > > rect:PGdkRectangle); > > > > so, having

Re: [fpc-pascal] Get Timestamp since 1970 (linux)

2007-06-04 Thread TOUZEAU DAVID
Many thanks Seweryn, i use it var ANow,AThen : TDateTime; begin ANow:=now; AThen:=EncodeDateTime(1970, 1, 1, 0, 0, 0, 0); result:=IntTostr(SecondsBetween(ANow,AThen)-7200);//7200 for GMT +2 end; Seweryn Walentynowicz a écrit : On Mon, Jun 04, 2007 at 09:27:55AM +0200, patr

[fpc-pascal] Re: fpc-pascal Digest, Vol 34, Issue 13

2007-06-04 Thread gmjimen
Thanks for the answers. I think I'll duplicate the functions, one for ASCII (ANSISTRING) coding and the other for UTF-8 (WIDESTRING). I think this is the best way. But I've look for the description for UTF8Encode, UTF8Decode, UTF8ToAnsi and UTF8ToUnicode in the documentation and I can't find it.

Re: [fpc-pascal] Re: fpc-pascal Digest, Vol 34, Issue 13

2007-06-04 Thread Felipe Monteiro de Carvalho
On 6/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I think I'll duplicate the functions, one for ASCII (ANSISTRING) coding and the other for UTF-8 (WIDESTRING). I think this is the best way. A widestring is not suitable to hold a utf-8 string. A ansistring on the other hand is. (ansi is ju

[fpc-pascal] Linux Linking Error solved

2007-06-04 Thread Rick Seiden
I emailed yesterday about an error when compiling in Linux. The error I received was "Error while linking." I figured out that the permissions on /usr/bin/ld is set to root, and I'm logged in as a different user. When I sudo fp to start Free Pascal, I am able to compile without a problem.

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 1

Re: [fpc-pascal] Linux Linking Error solved

2007-06-04 Thread Micha Nelissen
Rick Seiden wrote: > I emailed yesterday about an error when compiling in Linux. The error I > received was "Error while linking." > > I figured out that the permissions on /usr/bin/ld is set to root, and > I'm logged in as a different user. When I sudo fp to start Free Pascal, > I am able to co

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

2007-06-04 Thread Daniël Mantione
Op Mon, 4 Jun 2007, schreef Francisco Reyes: > The source? Exactly. Daniël___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Linux Linking Error solved

2007-06-04 Thread Rick Seiden
-rwxr-xr-x 1 root root 444104 2006-06-08 04:09 ld You would think that would allow me to execute it as a normal user. The only thing I shouldn't be able to do as non-root, non-root-group member is write it, but... I was going to copy and paste the output to prove that it didn't do it, but

[fpc-pascal] No Browser Info Available

2007-06-04 Thread Rick Seiden
I'm having problems running fp ide under Ubuntu 6.x under VMWare Workstation 5.5. I go to an xterm session, and then run fp. The first mouse click generates an error that is obviously from FP. It says No Browser info available with an OK "button". After that the mouse won't work in the te

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 pa

[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 a

[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) -O3level

[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 o

Re: [fpc-pascal] When is make cycle needed?

2007-06-04 Thread Michael Van Canneyt
On Mon, 4 Jun 2007, Francisco Reyes wrote: > Reading the docs I see there is a "make cycle" target, but I am not sure when > it is necessary. Whenever the compiler changes. It's to make sure that a compiler change does not cause any errors: the changed compiler (ppc1) must generate a compiler

Re: [fpc-pascal] building snapshot

2007-06-04 Thread Jonas Maebe
On 5 jun 2007, at 03:44, Francisco Reyes wrote: 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 [200

Re: [fpc-pascal] Optimization levels

2007-06-04 Thread Jonas Maebe
On 5 jun 2007, at 03:49, Francisco Reyes wrote: Looking at the compiler parameters I see: -Oggenerate smaller code -OGgenerate faster code (default) Is the difference in speed/size significant? Usually not. -O1level 1 optimizations (quick optimizations) -O2