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

Giuliano Colla giuliano.colla at fastwebnet.it
Wed Jan 30 11:57:25 CET 2019


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_calcInverse(float x0, float y0, float z0, float &theta1, float &theta2, float &theta3);

Invoking h2pas with the following command line:

h2pas -e -p -D -i deltarobcpp.h

generates an "Internal error 1 in line 1". The temporary files 
generated, ext*.tmp, are all of zero length.

Platform is Linux x86_64, tested with h2pas from different fpc releases 
from 2.6.4 to trunk.

What I'm doing wrong?

Giuliano

-- 
Do not do to others as you would have them do to you.They might have different tastes.




More information about the fpc-pascal mailing list