1 Reply Latest reply: Feb 3, 2013 1:56 AM by JackK RSS

    Errors in OCCI header files

    JackK
      Hi,
      I have a C++ source code. I added *#include "occi.h"* to my code and during compilation I get following error messages:
      g++ -I../include -I/usr/include -I/usr/include/freetype2 -I/u01/app/oracle/product/11.2.0/xe/rdbms/public  -lglut -lGLU -lGL -L/usr/local/lib -lfreetype -L../linux -lftgl g.cpp
      In file included from /u01/app/oracle/product/11.2.0/xe/rdbms/public/occiData.h:107,
                       from /u01/app/oracle/product/11.2.0/xe/rdbms/public/occi.h:43,
                       from g.cpp:15:
      /u01/app/oracle/product/11.2.0/xe/rdbms/public/occiControl.h:986: error: expected identifier before ‘int’
      /u01/app/oracle/product/11.2.0/xe/rdbms/public/occiControl.h:987: error: expected unqualified-id before ‘{’ token
      /u01/app/oracle/product/11.2.0/xe/rdbms/public/occiControl.h:1257: error: expected identifier before ‘int’
      /u01/app/oracle/product/11.2.0/xe/rdbms/public/occiControl.h:1258: error: expected unqualified-id before ‘{’ token
      /u01/app/oracle/product/11.2.0/xe/rdbms/public/occiControl.h:1387: error: expected identifier before ‘int’
      /u01/app/oracle/product/11.2.0/xe/rdbms/public/occiControl.h:1387: error: expected unqualified-id before ‘{’ token
      make: *** [g.o] Error 1
      Am I doing something wrong? Please help...

      ----------
      Edited by: JackK on Jan 25, 2013 1:23 PM

      Somebody help me, please...

      ----------
      Edited by: JackK on Feb 2, 2013 10:21 AM

      I now downloaded instantclient-basiclite-linux.x64-11.2.0.3.0.zip and instantclient-sdk-linux.x64-11.2.0.3.0.zip:
      http://download.oracle.com/otn/linux/instantclient/11203/instantclient-basiclite-linux.x64-11.2.0.3.0.zip
      http://download.oracle.com/otn/linux/instantclient/11203/instantclient-sdk-linux.x64-11.2.0.3.0.zip
      and got the same errors during compilation of my code.
      The strangest thing is that there's no 'int' in occiControl.h:986. That line contains: "enum Status".

      Please, help me somebody... I'm very confused. Don't know how to fix this.
        • 1. Re: Errors in OCCI header files
          JackK
          I have found the solution!
          In my program I am also using OpenGL and have a line
          #include <GL/glx.h>
          When a line
          #include <occi.h>
          is after the line with glx.h then the errors are as I reported here. After moving the second line before the first, there are no more such errors.
          Strange but true.