Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-10

h2pas error report

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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

Marc Santhoff
to Marc Santhoff
Marc Santhoff wrote 19 lines
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

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

- Jeff

Marc Santhoff
to Jeff Pohlmeyer
Jeff Pohlmeyer wrote 7 lines
> 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