[fpc-pascal] RE: Comedi Lib Header translation, was: h2pas enum error

Henry Vermaak henry.vermaak at gmail.com
Thu May 20 11:50:44 CEST 2010


On 20 May 2010 10:21, Hartmut Eilers <hartmut at eilers.net> wrote:
> hartmut at canis:~/src/OpenMSR/PhysMach/comedi $ cpp --no-stdinc comedi.h
>> comedi.cpped.h
> cc1: error: unrecognized command line option "-fno-stdinc"
>
> This commandline option is not recognized by the compiler, hmmm.

Try cpp -nostdinc.  After this, comment out all of the functions in
the file (just search for "return").  h2pas will then parse the file
successfully, after which you can rewrite the functions you've
commented out (they are simple).

Henry



More information about the fpc-pascal mailing list