1 Reply Latest reply on Apr 26, 2006 1:55 PM by 386814

    error when including xmlrpc header file in proC program

    399843
      Hi,
      a simple "hello world" .pc program fails to compile on Mac 10.4.6 (Tiger) when xmlrpc.h is included, with the following error:

      System default option values taken from: /Users/Oracle/10g/orahome/precomp/admin/pcscfg.cfg

      Syntax error at line 4, column 2, file /usr/include/stdarg.h:
      Error at line 4, column 2 in file /usr/include/stdarg.h
      #include_next <stdarg.h>
      .1
      PCC-S-02014, Encountered the symbol "include_next" when expecting one of the fol
      lowing:

      a numeric constant, newline, define, elif, else, endif,
      error, if, ifdef, ifndef, include, line, pragma, undef,
      an immediate preprocessor command, a C token,
      The symbol "newline," was substituted for "include_next" to continue.

      The program is:

      #include </usr/local/include/xmlrpc.h>
      #include <stdio.h>
      int main(argc,argv)
      int argc;
      char **argv;{
      EXEC SQL BEGIN DECLARE SECTION;
      VARCHAR TYPE[4];
      EXEC SQL END DECLARE SECTION;
      printf("Hello world\n");
      }

      Thanks,
      Sophie
        • 1. Re: error when including xmlrpc header file in proC program
          386814
          Sophie

          did your program work ok under 10.3.6? Is it just Tiger that gives the problem?

          I have not used xmlrpc but I have used Pro*C on OS X with no probelms.

          Where did the xmlrpc.h you are using come from? I could not find it on OS X on either Tiger or Panther. However I do find an xmlrpc.cp and a make file so I assume you would include a shared library from it in the make file for your program to be able to make the xmlrpc calls you need to.

          In general, the include files are in sub directories of /System/Library/Frameworks and it would be worth a grep -r for the declarations you want to include and put the path in the include parameter to proc.

          I hope this info helps.

          Paul