-a and -b options do not work

Help
2001-03-19
2001-03-21
  • 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
      2001-03-21

      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.