-a and -b options do not work

  • On my Solaris 8 system the original source file is not touched and I only get the following errors

    /usr/include/stdio.h:37: syntax error at token 'std'

    whereas if I do not use any of -a -b everything is fine

    Am I missing something ??

    • Chin Huang
      Chin Huang

      When you use the -a or -b option, cproto does not pipe the C source file through the C preprocessor.  It instead tries to interpret the C preprocessor directives itself.  Unfortunately, cproto understands only a few C preprocessor directives and does not expand preprocessor macros.  It seems the <stdio.h> header file defines and uses macros that confuse cproto's parser.