h2pas error report

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

h2pas error report

Marc Santhoff
Hi,

h2pas does crash on the following lines:


typedef unsigned __int64 hsize_t;
typedef signed __int64 hssize_t;


Command line and error message:

h2pas -d -l "hdf5" -p -o hdf5.cpped.nostdinc.pas hdf5.h.nostdinc
at line 317 error : syntax error
Runtime error 216 at $080631DE
  $080631DE
  $0805FBA5
  $080659CA

Find the complete preprocessed header file attached.

TIA,
Marc


_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

hdf5.h.nostdinc.gz (13K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: h2pas error report

Marc Santhoff
Am Donnerstag, den 05.10.2006, 23:15 +0200 schrieb Marc Santhoff:

> Hi,
>
> h2pas does crash on the following lines:
>
>
> typedef unsigned __int64 hsize_t;
> typedef signed __int64 hssize_t;
>
>
> Command line and error message:
>
> h2pas -d -l "hdf5" -p -o hdf5.cpped.nostdinc.pas hdf5.h.nostdinc
> at line 317 error : syntax error
> Runtime error 216 at $080631DE
>   $080631DE
>   $0805FBA5
>   $080659CA
>
> Find the complete preprocessed header file attached.

Errm, I actually forgot the obvious questions:

What's wrong here? How can I get around it?

Marc


_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

RE: h2pas error report

Jeff Pohlmeyer
In reply to this post by Marc Santhoff
> Errm, I actually forgot the obvious questions:
> What's wrong here? How can I get around it?


cat input.h | awk '{gsub(/\<__int64\>/," long long "); print}'  > output.h

 - should work, at least on Linux x86



 - Jeff
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: RE: h2pas error report

Marc Santhoff
Am Donnerstag, den 05.10.2006, 22:19 -0500 schrieb Jeff Pohlmeyer:
> > Errm, I actually forgot the obvious questions:
> > What's wrong here? How can I get around it?
>
>
> cat input.h | awk '{gsub(/\<__int64\>/," long long "); print}'  > output.h
>
>  - should work, at least on Linux x86

That has done the trick. At least h2pas runs through and I'll see later,
if the type change makes any difference on windows.

Many thanks Jeff,
Marc


_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal