Re: [fpc-pascal] h2pas fails on c++ header file

2019-01-31 Thread Marco van de Voort
Op 1/30/2019 om 11:57 AM schreef Giuliano Colla: What I'm doing wrong? Using a C header converter or a C++ header file.   & is not proper C. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/list

Re: [fpc-pascal] trying to use C code in .pas on WIN32

2019-01-31 Thread Bart
On Thu, Jan 31, 2019 at 7:35 AM Sven Barth via fpc-pascal wrote: > > This is on an evil windows machine > Windows is one of FPC's main targets, we can do without such "expletives". Maybe he has WinME ??? -- Bart ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] trying to use C code in .pas on WIN32

2019-01-31 Thread Sven Barth via fpc-pascal
Am Do., 31. Jan. 2019, 15:26 hat Bart geschrieben: > On Thu, Jan 31, 2019 at 7:35 AM Sven Barth via fpc-pascal > wrote: > > > > This is on an evil windows machine > > Windows is one of FPC's main targets, we can do without such > "expletives". > > Maybe he has WinME ??? > Well, I was rather hap

Re: [fpc-pascal] h2pas fails on c++ header file

2019-01-31 Thread Giuliano Colla
Il 30/01/2019 13:17, Marco van de Voort ha scritto: Op 1/30/2019 om 11:57 AM schreef Giuliano Colla: What I'm doing wrong? Using a C header converter or a C++ header file.   & is not proper C. That is because h2pas is unable to handle it, or because fpc is unable to generate the proper

Re: [fpc-pascal] h2pas fails on c++ header file

2019-01-31 Thread Sven Barth via fpc-pascal
Am Do., 31. Jan. 2019, 17:38 hat Giuliano Colla < giuliano.co...@fastwebnet.it> geschrieben: > Il 30/01/2019 13:17, Marco van de Voort ha scritto: > > > > > Op 1/30/2019 om 11:57 AM schreef Giuliano Colla: > >> > >> What I'm doing wrong? > >> > > Using a C header converter or a C++ header file.

Re: [fpc-pascal] trying to use C code in .pas on WIN32

2019-01-31 Thread conlin664 via fpc-pascal
sven, so I just tried, what I think you said: procedure HelloC; cdecl; external name 'HelloC'; pcode.pas(19,1) Error: Undefined symbol: _HelloC sorry for complaining about windows, but i feel like this is more difficult on windows. All of the FPC examples, seem to run without this extra '_' b

Re: [fpc-pascal] trying to use C code in .pas on WIN32

2019-01-31 Thread Marc Santhoff
On Thu, 2019-01-31 at 11:00 -0700, conlin664 via fpc-pascal wrote: > sven, > > so I just tried, what I think you said: > > procedure HelloC; cdecl; external name 'HelloC'; > > pcode.pas(19,1) Error: Undefined symbol: _HelloC > > > sorry for complaining about windows, but i feel like this is more di

Re: [fpc-pascal] trying to use C code in .pas on WIN32

2019-01-31 Thread Tomas Hajny
On Thu, January 31, 2019 21:57, Marc Santhoff wrote: > On Thu, 2019-01-31 at 11:00 -0700, conlin664 via fpc-pascal wrote: >> sven, >> >> so I just tried, what I think you said: >> >> procedure HelloC; cdecl; external name 'HelloC'; >> >> pcode.pas(19,1) Error: Undefined symbol: _HelloC . . > You

Re: [fpc-pascal] trying to use C code in .pas on WIN32

2019-01-31 Thread Sven Barth via fpc-pascal
Am Do., 31. Jan. 2019, 22:03 hat Marc Santhoff geschrieben: > On Thu, 2019-01-31 at 11:00 -0700, conlin664 via fpc-pascal wrote: > > sven, > > > > so I just tried, what I think you said: > > > > procedure HelloC; cdecl; external name 'HelloC'; > > > > pcode.pas(19,1) Error: Undefined symbol: _Hel

Re: [fpc-pascal] trying to use C code in .pas on WIN32

2019-01-31 Thread Marc Santhoff
On Thu, 2019-01-31 at 22:42 +0100, Tomas Hajny wrote: > On Thu, January 31, 2019 21:57, Marc Santhoff wrote: > > On Thu, 2019-01-31 at 11:00 -0700, conlin664 via fpc-pascal wrote: > > > sven, > > > > > > so I just tried, what I think you said: > > > > > > procedure HelloC; cdecl; external name 'Hel