Re: [fpc-pascal] WinHTTP.h Translation

2017-11-09 Thread Sven Barth via fpc-pascal
Am 10.11.2017 04:06 schrieb "African Wild Dog" :

Hello,

Does Free Pascal has any header translations for WinHTTP.h

?


Yes, unit WinHTTP in packages/winunits-base.

Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] MINIX 3 support

2017-11-09 Thread Sven Barth via fpc-pascal
Am 10.11.2017 00:05 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:

Does FPC support the MINIX 3 target platform? Or has somebody attempted to
port FPC to that platform?


No, FPC does not support MINIX 3 though I did play around with the idea
some years ago (not that there had been any results). Considering that
nowadays I think they use ELF as well it shouldn't be too hard to start a
port though (not that I'd be the one to do it :P)

Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] WinHTTP.h Translation

2017-11-09 Thread African Wild Dog
Hello,

Does Free Pascal has any header translations for WinHTTP.h

?

Ragards
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] MINIX 3 support

2017-11-09 Thread rym...@gmail.com
Wonder if Intel ME runs fpc...


--
Ryan (ライアン)
Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone
elsehttps://refi64.com/

On Nov 9, 2017 at 5:05 PM, > wrote:

Does FPC support the MINIX 3 target platform? Or has somebody attempted
to port FPC to that platform?


Regards,
   Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] installing cross fpc in parallel to systems fpc

2017-11-09 Thread leledumbo via fpc-pascal
> When I'm in doubt 
about the conditional defines, I either google or take advantage of 
Lazarus: in project->options I select the target CPU family and the 
target processor, and then I use "show all options" to see which defines 
are set. 

fpc -vc is your friend here.



--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Object-oriented file (path) handling library

2017-11-09 Thread leledumbo via fpc-pascal
> is there something simliar to Java's java.io.File or java.nio.Path for 
FPC? Google makes me think there isn't... 

No, there isn't. Welcome to hybrid paradigm programming language. It's not
difficult to make an OO wrapper for File* SysUtils functions or even the
classic ones in System unit, though.



--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] MINIX 3 support

2017-11-09 Thread Graeme Geldenhuys
Does FPC support the MINIX 3 target platform? Or has somebody attempted 
to port FPC to that platform?



Regards,
  Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] installing cross fpc in parallel to systems fpc

2017-11-09 Thread Giuliano Colla

Il 09/11/2017 22:56, Marc Santhoff ha scritto:


I see, so when using fpc for ARM these define is automatically set?

Yes

And would that be CPUAVR for Atmels chips?
Not sure about that. I never used fpc on Atmel chips. When I'm in doubt 
about the conditional defines, I either google or take advantage of 
Lazarus: in project->options I select the target CPU family and the 
target processor, and then I use "show all options" to see which defines 
are set.


Giuliano

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] installing cross fpc in parallel to systems fpc

2017-11-09 Thread Marc Santhoff
On Do, 2017-11-09 at 21:31 +0100, Giuliano Colla wrote:
> Il 09/11/2017 02:36, Marc Santhoff ha scritto:
> 
> > how does fpc and it's makefiles handle the case of installing a cross
> > compiler on a system having fpc installed?
> >
> > The target path will differ and I can set that, but how is the config
> > file .fpc.cfg handled?
> 
> You may edit your fpc.cfg for your different target using an IFDEF/ENDIF 
> pair.
> 
> Under Linux I have in my home directory a .fpc.cfg sort of:
> 
> #include /etc/fpc.cfg  <--- to get all the defaults
> #IFDEF CPUARM
>  here all the ARM specific paths and options
> #ENDIF

I see, so when using fpc for ARM these define is automatically set?
And would that be CPUAVR for Atmels chips?

> That's the basic idea. All that's between #IFDEF -- #ENDIF is ignored 
> when you're *not* cross-compiling.
> All that's between #IFDEF -- #ENDIF overrides the previous settings when 
> you're cross-compiling

I have thought about this solution, but did not know the details. Next
step will be to generate a default fpc.cfg for the arm cross compiler
and merge that into the .fpc.cfg using ifdefs.

Fine, now I know the way. :)

Thanks,
Marc

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] installing cross fpc in parallel to systems fpc

2017-11-09 Thread Giuliano Colla

Il 09/11/2017 02:36, Marc Santhoff ha scritto:


how does fpc and it's makefiles handle the case of installing a cross
compiler on a system having fpc installed?

The target path will differ and I can set that, but how is the config
file .fpc.cfg handled?


You may edit your fpc.cfg for your different target using an IFDEF/ENDIF 
pair.


Under Linux I have in my home directory a .fpc.cfg sort of:

#include /etc/fpc.cfg  <--- to get all the defaults
#IFDEF CPUARM
 here all the ARM specific paths and options
#ENDIF

That's the basic idea. All that's between #IFDEF -- #ENDIF is ignored 
when you're *not* cross-compiling.
All that's between #IFDEF -- #ENDIF overrides the previous settings when 
you're cross-compiling


Giuliano
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] installing cross fpc in parallel to systems fpc

2017-11-09 Thread Marc Santhoff
On Do, 2017-11-09 at 20:05 +0200, Christo wrote:
> On Thu, 2017-11-09 at 02:36 +0100, Marc Santhoff wrote:
> > Additionally there seems to be no compiler switch for changing the
> > configuration file to use, only -n for ignoring it. Is ist possible
> > to
> > name the .cfg on the command line or how would it be done better?
> 
> Yes, specify alternative config file using the @ option.  Use in
> conjunction with -n if you want to exclude the default config file.

In fact you're right, I ovelooked that option. Now that the name ist
known:

 > ./ppcrossarm -h | grep @
  @   Read compiler options from  in addition to the default fpc.cfg

That solves most problems for now.

Thanks,
Marc

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] installing cross fpc in parallel to systems fpc

2017-11-09 Thread Christo
On Thu, 2017-11-09 at 02:36 +0100, Marc Santhoff wrote:
> Additionally there seems to be no compiler switch for changing the
> configuration file to use, only -n for ignoring it. Is ist possible
> to
> name the .cfg on the command line or how would it be done better?

Yes, specify alternative config file using the @ option.  Use in
conjunction with -n if you want to exclude the default config file.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Object-oriented file (path) handling library

2017-11-09 Thread Flávio Etrusco
Hello,

is there something simliar to Java's java.io.File or java.nio.Path for
FPC? Google makes me think there isn't...

Best regards,
Flávio
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal