Precompilers and OCI (MOSC)

MOSC Banner

Trying to build the example code from "Using the C API for XML - Oracle XML DB Developer's Guide"

edited Jun 28, 2012 9:28PM in Precompilers and OCI (MOSC) 3 commentsAnswered
Hello,

Sorry for the newbie question but I am trying to build the sample code that is in:

http://docs.oracle.com/cd/E11882_01/appdev.112/e16659/xdb12oci.htm#BABHFHIBm (example 16.1)

I can not get it to compile. My oracle installation is 11.1 on Oracle Enterprise linux 5.3 and it appears to be missing the file s.h. Hence my compiler does not have a definition of STATICF.

This is the output from the gcc:

gcc -o ocixmldb.o -c ocixmldb.c -I/oraclient/product/11g/xdk/include -I/oraclient/product/11g/rdbms/publicocixmldb.c:2:15: error: s.h: No such file or directoryocixmldb.c:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sword'ocixmldb.c:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sword'ocixmldb.c:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sword'ocixmldb.c:130: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'output'make: *** [ocixmldb] Error 1

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center