Re: [fpc-pascal] date formating dificulty

2014-11-18 Thread Philippe
Em 18.11.2014 10:27, Michael Van Canneyt escreveu: > On Tue, 18 Nov 2014, Philippe wrote: > >> Em 18.11.2014 09:49, Philippe escreveu: I wrote a program: - windows 8 32 bits - lazarus 1.2.4 ... fpc 2.6.4 then I copied it to another computer - windows 7 64 bits - lazarus 1.0.14 fpc 2.6.2

Re: [fpc-pascal] date formating dificulty

2014-11-18 Thread Michael Van Canneyt
On Tue, 18 Nov 2014, Philippe wrote: Em 18.11.2014 09:49, Philippe escreveu: I wrote a program: - windows 8 32 bits - lazarus 1.2.4  ... fpc 2.6.4 then I copied it to another computer - windows 7 64 bits - lazarus 1.0.14 fpc 2.6.2 and got

Re: [fpc-pascal] date formating dificulty

2014-11-18 Thread Graeme Geldenhuys
On 18/11/2014 11:49, Philippe wrote: > why formatDateTime( 'DD/MM/', now) returns 18-11-2014 and not > 18/11/2014 ? > As far as I remember the "/" character in the format string is not a literal character. It is a place holder for the date delimiter (varies by regional settings) - just like

Re: [fpc-pascal] date formating dificulty

2014-11-18 Thread Philippe
Em 18.11.2014 09:49, Philippe escreveu: > I wrote a program: > > - windows 8 32 bits > > - lazarus 1.2.4 ... fpc 2.6.4 > > then I copied it to another computer > > - windows 7 64 bits > > - lazarus 1.0.14 fpc 2.6.2 > > and got into trouble with dates format! programs behave di

[fpc-pascal] date formating dificulty

2014-11-18 Thread Philippe
I wrote a program: - windows 8 32 bits - lazarus 1.2.4 ... fpc 2.6.4 then I copied it to another computer - windows 7 64 bits - lazarus 1.0.14 fpc 2.6.2 and got into trouble with dates format! programs behave diferent way, and what was working on the fisrt computer does not work

Re: [fpc-pascal] Mixing PIC non-PIC code/variables when linking a shared library

2014-11-18 Thread Jonas Maebe
On 18 Nov 2014, at 11:31, Mattias Gaertner wrote: On Tue, 18 Nov 2014 11:03:03 +0100 Jonas Maebe wrote: [...] Yes, but "x86-64" is apparently bit too broad: * it's added for x86-64/(freebsd, openbsd, netbsd, linux, solaris) * for Darwin, -Cg is always on by default on all platforms, but this

Re: [fpc-pascal] Mixing PIC non-PIC code/variables when linking a shared library

2014-11-18 Thread Mattias Gaertner
On Tue, 18 Nov 2014 11:03:03 +0100 Jonas Maebe wrote: >[...] > Yes, but "x86-64" is apparently bit too broad: > * it's added for x86-64/(freebsd, openbsd, netbsd, linux, solaris) > * for Darwin, -Cg is always on by default on all platforms, but this > is done in the compiler itself (because it'

Re: [fpc-pascal] Mixing PIC non-PIC code/variables when linking a shared library

2014-11-18 Thread Jonas Maebe
On 18 Nov 2014, at 00:09, Mattias Gaertner wrote: On Mon, 17 Nov 2014 16:13:40 +0100 Jonas Maebe wrote: Yes, fpcmake automatically adds -Cg/-fPIC for x86-64 platforms, exactly because of this issue. Does "automatically" means here "always on x86_64"? Yes, but "x86-64" is apparently bit t