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

2019-02-01 Thread Giuliano Colla
Il 01/02/2019 10:37, Marco van de Voort ha scritto: Op 2019-01-31 om 19:00 schreef Sven Barth via fpc-pascal:     That is because h2pas is unable to handle it, or because fpc is     unable     to generate the proper code for a c++ parameter by reference The former. For the later you'd eithe

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

2019-02-01 Thread Marco van de Voort
Op 2019-01-31 om 19:00 schreef Sven Barth via fpc-pascal: That is because h2pas is unable to handle it, or because fpc is unable to generate the proper code for a c++ parameter by reference The former. For the later you'd either use var or constref. Though there'd still be the to

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] 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 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

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

2019-01-30 Thread Giuliano Colla
I have a c++ module which just performs calculations, and does not use c++ objects. Just c++ syntax. The header file which is used from a c++ main, is the following: extern int delta_calcForward(float theta1, float theta2, float theta3, float &x0, float &y0, float &z0); extern int delta_calcIn