Problem in PRO * C compilation

Hi gurus,
I am getting this error message when i try to compile my pro c program.
cc +O1    -I. -I/local/apps/oracle/product/8.1.7.4/precomp/public -I/local/apps/oracle/product/8.1.7.4/rdbms/public -I/local/apps/oracle/product/8.1.7.4/plsql/public -I/local/apps/oracle/product/8.1.7.4/network/public     -c hnc_edit.c
*** Error exit code 1
(Bundled) cc: warning 480: The +O1 option is available only with the C/ANSI C product; ignored.
(Bundled) cc: "hnc_edit.c", line 679: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "hnc_edit.c", line 682: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "hnc_edit.c", line 687: error 1705: Function prototypes are an ANSI feature.
Environment:
OS : HP-UX
DB : 8.1.7.4.0.
Do I need to buy any new c compiler, OR my current compiler(bundled with UNIX) will work.
Devasheesh

Devasheesh,
All you need is the HP-UX aC++ compiler, the bundled one will not work with it.
As I'm just an user, not a SysAdmin or such, I don't if that tool is included on install disks or you'll need to buy it.
There's some valuable information about compatibility of Pro*C x compilers on Metalink. I think it's a good idea to check it out, if you have access to it.
HTH,
Will

Similar Messages

  • Problem with pro*c compilation and linking

    Hi all,
    I have a problem running the pro*c program on an windows environment.
    I have oracle9i and visual studio .net. Ya kinda strange about the combo, but need to live with it.
    I create a .pc file and precompile it using oracle pro*c/c++ precompiler. so now I got the .c file.
    I used .net command line to compile this .c file
    It gave me the .obj file. Now I am getting a link error. I am not sure how I need to link the linkfile.
    Let me know if you have any suggestions.
    Thank you,
    -Raghu

    Make sure you are including the Pro*C library. The platform docs tell you explicitly what the library name is. I think for 9i it is called orasql9.lib.

  • Problem while Pro*C compilation on Unix after 10g database migration.

    I am getting the following error while compiling Pro*C code after 10g Database migration,
    ld: 0706-006 Cannot find or open library file: -l trace10
    ld:open(): A file or directory in the path name does not exist.
    I am using a Makefile for compilation and this makes direct reference to library -ltrace10
    The $LIBPATH value is : /oracle/app/oracle/product/10.2.0/ora10gdb/lib:/usr/lib:/lib
    Please guide.
    Thanks in advance
    Kaustubh

    I am getting the following error while compiling Pro*C code after 10g Database migration,
    ld: 0706-006 Cannot find or open library file: -l trace10
    ld:open(): A file or directory in the path name does not exist.
    I am using a Makefile for compilation and this makes direct reference to library -ltrace10
    The $LIBPATH value is : /oracle/app/oracle/product/10.2.0/ora10gdb/lib:/usr/lib:/lib
    Please guide.
    Thanks in advance
    Kaustubh

  • Pro*C Compilation Problems

    I am a member of the OTN, from which I received Oracle V8.1.6. I recently got around to installing the Oracle Server V8.1.6 on Red Hat Linux V6.1. I eventually got everything installed and proceded to test the Pro*C sample programs. I "compiled" all the related SQL programs and created the tables. The problem is that when I use the "make" program "demo_proc.mk" to build any of the sample*.c programs I get the following error :
    make -f demo_proc.mk build
    cc -o -L /u01/app/oracle/product/8.1.6/lib/ -lclntsh `cat /u01/app/oracle/pr
    oduct/8.1.6/lib/sysliblist` -ldl -lm
    /u01/app/oracle/product/8.1.6/lib/: file not recognized: Is a directory
    collect2: ld returned 1 exit status
    make: *** [build] Error 1
    or whe make -f demo_proc.mk build_static
    make -f demo_proc.mk build_static
    cc -o -L /u01/app/oracle/product/8.1.6/lib/ -lclient8 /u01/app/oracle/product/
    8.1.6/lib/libsql8.a /u01/app/oracle/product/8.1.6/lib/scorept.o /u01/app/oracle/
    product/8.1.6/lib/sscoreed.o /u01/app/oracle/product/8.1.6/rdbms/lib/kpudfo.o `
    cat /u01/app/oracle/product/8.1.6/lib/ldflags` -lnsgr8 -lnzjs8 -ln8 -lnl8 -l
    nro8 `cat /u01/app/oracle/product/8.1.6/lib/ldflags` -lnsgr8 -lnzjs8 -ln8 -l
    nl8 -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -lwtc8 -lmm -lnls8 -lcore8 -l
    nls8 -lcore8 -lnls8 `cat /u01/app/oracle/product/8.1.6/lib/ldflags` -lnsgr8
    -lnzjs8 -ln8 -lnl8 -lnro8 `cat /u01/app/oracle/product/8.1.6/lib/ldflags` -
    lnsgr8 -lnzjs8 -ln8 -lnl8 -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -lpls8
    -ltrace8 -lnls8 -lcore8 -lnls8 -lcore8 -lnls8 -lclient8 -lvsn8 -lwtc8 -lcommo
    n8 -lgeneric8 -lnls8 -lcore8 -lnls8 -lcore8 -lnls8 `cat /u01/app/oracle/prod
    uct/8.1.6/lib/sysliblist` -ldl -lm /u01/app/oracle/product/8.1.6/lib/nautab.o /
    u01/app/oracle/product/8.1.6/lib/naeet.o /u01/app/oracle/product/8.1.6/lib/naect
    .o /u01/app/oracle/product/8.1.6/lib/naedhs.o /u01/app/oracle/product/8.1.6/rdb
    ms/lib/xaondy.o
    /u01/app/oracle/product/8.1.6/lib/: file not recognized: Is a directory
    collect2: ld returned 1 exit status
    make: *** [build_static] Error 1
    I have checked that the directories are valid and readable, but to no avail. I have setup the pcscfg.cfg as follows :
    sys_include=(/usr/include,/usr/src/linux/include,/usr/src/linux/include/linux/in
    clude,/usr/include/g++-2,/usr/lib/bcc/include)
    include=/u01/app/oracle/product/8.1.6/precomp/public
    include=/u01/app/oracle/product/8.1.6/precomp/hdrs
    include=/u01/app/oracle/product/8.1.6/tpcc2x_2/src
    include=/u01/app/oracle/product/8.1.6/precomp/include
    include=/u01/app/oracle/product/8.1.6/oracore/include
    include=/u01/app/oracle/product/8.1.6/oracore/public
    include=/u01/app/oracle/product/8.1.6/rdbms/include
    include=/u01/app/oracle/product/8.1.6/rdbms/public
    include=/u01/app/oracle/product/8.1.6/rdbms/demo
    include=/u01/app/oracle/product/8.1.6/nlsrtl/include
    include=/u01/app/oracle/product/8.1.6/nlsrtl/public
    include=/u01/app/oracle/product/8.1.6/network_src/include
    include=/u01/app/oracle/product/8.1.6/network_src/public
    include=/u01/app/oracle/product/8.1.6/network/include
    include=/u01/app/oracle/product/8.1.6/network/public
    include=/u01/app/oracle/product/8.1.6/plsql/public
    code=ansi_c
    ltype=short
    sqlcheck=full
    But I am able to build the CPPPro*C sample, albeit with loads of warnings.
    I have followed all the installation instructions and the help provide on the technet site, but I still cannot get this to work.
    or when I just try to "proc sample1.pc", I get the following
    Pro*C/C++: Release 8.1.6.0.0 - Production on Tue Apr 10 09:17:37 2001
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    System default option values taken from: /u01/app/oracle/product/8.1.6/precomp/a
    dmin/pcscfg.cfg
    Syntax error at line 263, column 12, file /usr/include/libio.h:
    Error at line 263, column 12 in file /usr/include/libio.h
    size_t __nbytes));
    ...........1
    PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "enum," was substituted for "size_t" to continue.
    Syntax error at line 272, column 11, file /usr/include/libio.h:
    Error at line 272, column 11 in file /usr/include/libio.h
    size_t __n));
    ..........1
    PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "enum," was substituted for "size_t" to continue.
    Syntax error at line 364, column 9, file /usr/include/libio.h:
    Error at line 364, column 9 in file /usr/include/libio.h
    IOva_list, int *__restrict));
    ........1
    PCC-S-02201, Encountered the symbol "__gnuc_va_list" when expecting one of the f
    ollowing:
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "auto," was substituted for "__gnuc_va_list" to continue.
    Syntax error at line 366, column 10, file /usr/include/libio.h:
    Error at line 366, column 10 in file /usr/include/libio.h
    IOva_list));
    .........1
    PCC-S-02201, Encountered the symbol "__gnuc_va_list" when expecting one of the f
    ollowing:
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "auto," was substituted for "__gnuc_va_list" to continue.
    Syntax error at line 368, column 19, file /usr/include/libio.h:
    Error at line 368, column 19 in file /usr/include/libio.h
    extern IOsize_t IOsgetn __P ((_IO_FILE *, void *, IOsize_t));
    ..................1
    PCC-S-02201, Encountered the symbol "_IO_sgetn" when expecting one of the follow
    ing:
    ; , = ( [
    The symbol ";" was substituted for "_IO_sgetn" to continue.
    Syntax error at line 368, column 55, file /usr/include/libio.h:
    Error at line 368, column 55 in file /usr/include/libio.h
    extern IOsize_t IOsgetn __P ((_IO_FILE *, void *, IOsize_t));
    ......................................................1
    PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "auto," was substituted for "size_t" to continue.
    Syntax error at line 233, column 18, file /usr/include/stdio.h:
    Error at line 233, column 18 in file /usr/include/stdio.h
    int __modes, size_t __n));
    .................1
    PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "enum," was substituted for "size_t" to continue.
    Syntax error at line 239, column 8, file /usr/include/stdio.h:
    Error at line 239, column 8 in file /usr/include/stdio.h
    size_t __size));
    .......1
    PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "enum," was substituted for "size_t" to continue.
    Syntax error at line 258, column 6, file /usr/include/stdio.h:
    Error at line 258, column 6 in file /usr/include/stdio.h
    Gva_list __arg));
    .....1
    PCC-S-02201, Encountered the symbol "__gnuc_va_list" when expecting one of the f
    ollowing:
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "enum," was substituted for "__gnuc_va_list" to continue.
    Syntax error at line 261, column 5, file /usr/include/stdio.h:
    Error at line 261, column 5 in file /usr/include/stdio.h
    Gva_list __arg));
    ....1
    PCC-S-02201, Encountered the symbol "__gnuc_va_list" when expecting one of the f
    ollowing:
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "enum," was substituted for "__gnuc_va_list" to continue.
    Syntax error at line 265, column 6, file /usr/include/stdio.h:
    Error at line 265, column 6 in file /usr/include/stdio.h
    Gva_list __arg));
    .....1
    PCC-S-02201, Encountered the symbol "__gnuc_va_list" when expecting one of the f
    ollowing:
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "enum," was substituted for "__gnuc_va_list" to continue.
    Syntax error at line 269, column 49, file /usr/include/stdio.h:
    Error at line 269, column 49 in file /usr/include/stdio.h
    extern int snprintf __P ((char *__restrict __s, size_t __maxlen,
    ................................................1
    PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "enum," was substituted for "size_t" to continue.
    Syntax error at line 273, column 52, file /usr/include/stdio.h:
    Error at line 273, column 52 in file /usr/include/stdio.h
    extern int __vsnprintf __P ((char *__restrict __s, size_t __maxlen,
    ...................................................1
    PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "enum," was substituted for "size_t" to continue.
    Syntax error at line 275, column 9, file /usr/include/stdio.h:
    Error at line 275, column 9 in file /usr/include/stdio.h
    Gva_list __arg))
    ........1
    PCC-S-02201, Encountered the symbol "__gnuc_va_list" when expecting one of the f
    ollowing:
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "enum," was substituted for "__gnuc_va_list" to continue.
    Syntax error at line 277, column 50, file /usr/include/stdio.h:
    Error at line 277, column 50 in file /usr/include/stdio.h
    extern int vsnprintf __P ((char *__restrict __s, size_t __maxlen,
    .................................................1
    PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "enum," was substituted for "size_t" to continue.
    Syntax error at line 279, column 7, file /usr/include/stdio.h:
    Error at line 279, column 7 in file /usr/include/stdio.h
    Gva_list __arg))
    ......1
    PCC-S-02201, Encountered the symbol "__gnuc_va_list" when expecting one of the f
    ollowing:
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "enum," was substituted for "__gnuc_va_list" to continue.
    Syntax error at line 442, column 15, file /usr/include/stdio.h:
    Error at line 442, column 15 in file /usr/include/stdio.h
    extern size_t fread __P ((void *__restrict __ptr, size_t __size,
    ..............1
    PCC-S-02201, Encountered the symbol "fread" when expecting one of the following:
    ; , = ( [
    The symbol ";" was substituted for "fread" to continue.
    Syntax error at line 442, column 51, file /usr/include/stdio.h:
    Error at line 442, column 51 in file /usr/include/stdio.h
    extern size_t fread __P ((void *__restrict __ptr, size_t __size,
    ..................................................1
    PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
    ... auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name, exec oracle, exec oracle begin, exec,
    exec sql, exec sql begin, exec sql type, exec sql var,
    The symbol "exec," was substituted for "size_t" to continue.
    Syntax error at line 445, column 1, file /usr/include/stdio.h:
    Error at line 445, column 1 in file /usr/include/stdio.h
    extern size_t fwrite __P ((__const void *__restrict __ptr, size_t __size,
    1
    PCC-S-02201, Encountered the symbol "extern" when expecting one of the following
    Error at line 0, column 0 in file sample1.pc
    PCC-F-02102, Fatal error while doing C preprocessing
    The same error occurs when I hacked an old make file from an old project to make sample1.pc
    CC=gcc
    CINC=$(SQL)/inc
    SLIB=-L$(SQL)/lib -L$(CLIB)
    LIBSAL=-lsal -lacc
    ECHO=$(ORACLE_HOME)/bin/echodo
    OBJS= sample1.o
    # CK Leave this in. I might get this makefile working correctly
    # at some future date.
    #HDRS = cs_alloc_segment.h \
    # orafunc.h
    GET = get
    GFLAGS =
    CFLAGS= -O -DNDEBUG
    # Acct Targets
    AC_PRODUCTION_TARGETS= \
    sample1
    ac_production_targets: $(AC_PRODUCTION_TARGETS)
    sample1: $(OBJS) \
    $(PROC) $(PROCPLSFLAGS) iname=sample1.pc
    @$(ECHO) $(CC) $(CFLAGS) -w0 -I $(CINC) $(LDFLAGS) \
    -o sample \
    $(PROLDLIBS) $(CLIB)/libacc.a \
    -DSCRIPT_HARNESS sample1.c
    rm sample1.c sample1.o
    The reason I am doing this, is that the place where I'm currently working are trying to choose between NT/SQL-Server and Linux/Oracle. I am trying to prove that the latter is the better development/production platform. If you could give me any help on the above, I would be grateful.
    regards
    Tim

    I have experienced similar to your PRO*C problems when trying to
    compile the code containing function with variable number of
    arguments (ellipse). The Pro*C complaind about the line
    containing: va_list args;. It simply seems that in 8i version of
    Oracle the PRO*C is not capable to preprocess this kind of
    construct (and in your example there are more constructs it does
    not cope with ;-).
    My workaround was to set PARSE=PARTIAL option. Then the PRO*C is
    only pre-processing the code found in declare sections and in
    EXEC SQL sections. This means that the pre-processor will work
    fine if you don't put the 'unparsable' constructs in any of
    these sections. It worked for me... at least.
    Regards,
    P.

  • Problem with Pro*C

    When trying to generate C-Code of the sample programs with the Pro*C compiler on a Redhat 9 Linux and Oracle 8.1.7, I have a problem with typedef __builtin_va_ as shown below. The $ORACLE_HOME/precomp/admin/pcscfg.cfg contains the following entries:
    sys_include=(/usr/include,/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include)
    include=(/usr/include/linux)
    include=(/usr/lib/gcc-lib/i386-redhat-linux7/2.96/include)
    include=(/usr/local/oracle/product/8.1.7/precomp/public)
    include=/usr/local/oracle/product/8.1.7/precomp/syshdr
    include=/usr/local/oracle/product/8.1.7/rdbms/public
    include=/usr/local/oracle/product/8.1.7/rdbms/demo
    ltype=short
    ================
    Pro*C/C++: Release 8.1.7.0.0 - Production on Mon Jun 7 13:26:06 2004
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    System default option values taken from: /usr/local/oracle/product/8.1.7/precomp/admin/pcscfg.cfg
    Syntax error at line 43, column 9, file /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/stdarg.h:
    Error at line 43, column 9 in file /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/incl
    ude/stdarg.h
    typedef __builtin_va_list __gnuc_va_list;
    ........1
    PCC-S-02201, Encountered the symbol "__builtin_va_list" when expecting one of th
    e following:
    auto, char, const, double, enum, float, int, long,
    ulong_varchar, OCIBFileLocator OCIBlobLocator,
    OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
    OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
    short, signed, sql_context, sql_cursor, static, struct,
    union, unsigned, utext, uvarchar, varchar, void, volatile,
    a typedef name,
    The symbol "enum," was substituted for "__builtin_va_list" to continue.

    Sorry! I have not explain it clearly.
    To solve it , you do following :
    1. locate stdarg.h ( or find /usr -name stdarg.h ), assume you find a stdarg.h in /usr/lib/gcc-lib/XXX/XXX/include/stdarg.h
    2.ln -s /usr/lib/gcc-lib/XXX/XXX/include/stdarg.h /usr/include/stdarg.h or cp /usr/lib/gcc-lib/XXX/XXX/include/stdarg.h /usr/include
    ( above 2 step was to make Pro*C can find stdarg.h in /usr/include )
    3. for file stddef.h do like step 1,2
    4. append a line in your Pro*C config file:
    CODE=ANSI_C
    null

  • Pro*C compiled on 11g should load libclntsh.so of 10g

    Is it possible that a program compiled with ORACLE 11g Pro*C compiler to load libclntsh.so of 10g ?
    My problem is source compiled on 10g works fine for even when connected to 11g database. But it get crashed with compiled on 11g and run in same environment.
    Can any please help?

    Pro*C doesn't compile the program. It just creates a .c file.
    Then you compile and link it with the library libclntsh.so
    libclntsh.so -> libclntsh.so.11.1
    libclntsh.so.10.1 -> libclntsh.so
    To fool the compiler you have to COPY the data of the library:
    mkdir ~/1
    cd ~/1
    cat $ORACLE_HOME/lib/libclntsh.so > libclntsh.so.10.1
    ln -s libclntsh.so.10.1 libclntsh.so
    gcc -L$HOME/1 -lclntshBTW, what do you mean by crashing? If you try to run the compiled program and it can't find the library, it's not a crash

  • Problem when trying to compile servlets!

    Hi,
    Can someone help me with my problem.
    I have installed jakarta-tomcat-1.4.27 after instructions from the book 'Core Servlets and JavaServer Pages' but I have one problem. When I compile a servlet I get the following message:
    C:\Apache-Tomcat-4.1.27\jakarta-tomcat-4.1.27\webapps\ROOT\WEB-INF\classes>javac HelloServlet.java
    HelloServlet.java:2: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    HelloServlet.java:3: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    HelloServlet.java:13: cannot resolve symbol
    symbol : class HttpServlet
    location: class HelloServlet
    public class HelloServlet extends HttpServlet {
    ^
    HelloServlet.java:14: cannot resolve symbol
    symbol : class HttpServletRequest
    location: class HelloServlet
    public void doGet(HttpServletRequest request,
    ^
    HelloServlet.java:15: cannot resolve symbol
    symbol : class HttpServletResponse
    location: class HelloServlet
    HttpServletResponse response)
    ^
    HelloServlet.java:16: cannot resolve symbol
    symbol : class ServletException
    location: class HelloServlet
    throws ServletException, IOException {
    ^
    6 errors
    What is the problem, and how will i fix the problem? I think there is some problem with the CLASSPATH, but I don't now what!
    My classpath looks as follows:
    set JAVA_HOME=C:\j2sdk1.4.1_01;CLASSPATH=.;C:\ServletDevel;C:\Apache-Tomcat-4.1.27\jakarta-tomcat-4.1.27\common\lib\servlet.jar
    N.B. I use Java version j2sdk1.4.1_01!

    OK, I have tried to do this but it does n't solve my problem. Maybe my problem is that I don't put my environment variables in a proper way (my windows knowledge is not the best). How will I set this variables in a proper way? I use windows XP Pro.
    Now I have put all my variables in one row as follows:
    Variable name: set
    Variable value: JAVA_HOME=C:\j2sdk1.4.1_01;CLASSPATH=.;C:\ServletsDevel;C:\Apache-Tomcat-4.1.27\jakarta-tomcat-4.1.27\common\lib\servlet.jar;C:\j2sdk1.4.1_01\bin
    Is this correct, or how will I make this in a proper way?
    N.B. I must restart my computer each time I have changed my settings, isn't that right?

  • Pro*C compiling/linking

    I have a Pro*C EXE program on Sun that compiles/links and works fine on that Unix box, which has Pro*C compiler and Oracle 8.05 installed. Apparantly this EXE program is refering to Oracle libraries ar run time. If I take this program on other Sun computer, it gives me an error "ld.so.1: dpn_config: fatal: libclntsh.so.1.0: open failed: No such file or directory"
    How can I create a Pro*C EXE program that will run on similar Sun box that has no Oracle or Pro*C compiler installed?
    There must be some linking parameters in make file I can make use of.
    Thanks for your help.
    Kishor

    Sorry alphasof, but you'll need to have the minimum oracle client software installed on every sun box you move the app to. More than just the libraries are involved, the whole TNS name lookup stuff gets installed, etc. It's more than just trying to statically link in the oracle libraries to your executable.
    If you install the oracle client software, you'll have no problems moving the executable.

  • New problems importing Pro-res files

    Hi,
    I am running CC14 on PC (HPz800 Windows 8) - and I have recently become unable to import Pro-res files into After Effects or Media Encoder. These files DO open in premiere
    I have tried the following:
    Restarted
    Cleared my cache
    Cleared all my appdata settings
    uninstalled and reinstalled latest Quicktime
    reverted back to a previous version of After effects (this is where i noticed the problem first and I had recently got a new update)
    copying the file to a different location on my drive and importing it from there
    Additionally:
    I have had no problems with Pro-res in the past
    The same file works fine on other computers in my office with the same versions of Ae/Encoder
    The video file works in premiere
    The video file plays fine in Quicktime
    I get the following errors:
    In Ae - "this '.mov' is damaged or unsupported"
    In media encoder - "could not be imported. could not read from source. please check settings and try again"
    In the meantime I have re-encoded a proxy using premiere - however this is not an adequate long-term solution
    Not sure what to try next, don't really want to re-image my whole computer (i already did this on a month or so ago)
    Any help is appreciated

    troubleshooting QuickTime errors with After Effects
    fixing permissions problem

  • GTA 4 on windows 7 BOOT camp texture problem, macbook pro 13 january 2011 help .

    GTA 4 on windows 7 BOOT camp texture problem, macbook pro 13 january 2011 help .
    any
    my problem looks like this
    http://www.youtube.com/watch?v=PGzgS57THMo
    gta 4 steam !

    If GTA IV believes the system is under specification even though the computer is powerful enough to run the game with higher settings, the following will fix this problem.
    This will work if your problem looks like this: "resource usage 230/60" and you can't change any other setting
    Just follow the steps:
    Step 1: Create a text file named ‘commandline.txt’ (without the " ")
    Step 2: Put the following statement inside it:
    i5 users: -availablevidmem 18.0 (with the -)
    i7 users: -availablevidmem 22.0 (with the -)
    Step 3: Open the main GTAIV folder (C/ program files (86)/ rockstar games/ GTA IV) and copy the commandline.txt file into it.
    Step 4: locate the file "GTAIV.exe" (in GTA main folder)
    Right click the file and select Properties
    Under the shortcut tab, you will see an area that says Target
    Modify the Target adding the command line after the last quotation mark (just add the statement you added in commandline.txt)
    (remember, i5 users: -availablevidmem 18.0 / i7 users: -availablevidmem 22.0)
    It should look something like this:
    Make sure to add space between " and -"
    I hope This helps, although late cx

  • Problem surface pro 2, windows 8. brush pressure is not working in Ps CC ,

    problem surface pro 2, windows 8. brush pressure is not working in Ps CC

    Este foro es un Foro de Usuarios en español.
    Puedes probar a explicar tu problema con mayor detalle.
    Indica por favor detalles de hardware
    (Podemos estar familiarizados con Photoshop, pero no con tabletas híbridas)
    Concretamente, cómo utilizas el pincel de presión?

  • Any problems running a program compiled with SDK 1.4.2_14 with JRE 1.4.2_08

    Hi,
    Would there ever be a problem running a program compiled in Java 1.4.2_13 with JRE 1.4.2_08?
    Why or why not? No guesses please.
    Thanks

    No such hope. The alternative to testing is to review changes made to each version leading up to 14. This is spelled out in each version's Release Document. There are a lot of changes. Most will not affect your program. Each change is relatively well described, but your problem will be to decide if your program will be affected by the change.
    Or, do nothing, hope like hell that nothing breaks, and have an up-to-date copy of your resume.
    If someone came to me saying a program couldn't be tested, I'd have serious concerns for that person's future.

  • I'm having this message when I try to export my video from Premiere Pro:  "Error compiling movie. Unknown error"

    I'm having this message when i try to export my video from Premiere Pro:
    "Error compiling movie. Unknown error" Do anybody knows what to do?

    1st, I moved your message to the correct forum
    2nd, More information needed for someone to help... please click below and provide the requested information
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840
    3rd, Error Compiling Movie... some past discussions and ideas
    -http://helpx.adobe.com/premiere-pro/kb/error-compiling-movie-rendering-or.html
    -http://helpx.adobe.com/premiere-elements/kb/error-error-compiling-movie-render.html
    -and nested sequences http://forums.adobe.com/thread/955172
    -and WMV files frame rate http://forums.adobe.com/message/4629210

  • How to integrate Pro C compiler and liberies in order to compile Pro C in oracle 9i

    Hello ,
    My name is Ron .
    I already installed The Database Server oracle 9i in my machine
    i do not install the Oracle 9i client only the Database server.
    but when i'm trying to compile Pro C sample program
    i get an error:
    operable program or batch file.
    Error executing c:\winnt\system32\cmd.exe.
    From what i know , oracle 9i Pro C liberay files must be in location "C:\Oracle\Ora92\precomp\lib\msvc" in my machine .
    but this directory not exist and also the liberies are missing.
    Do i miss something any installation of the oracle client?
    Do i need to install also the oracle 9i client in order to have the Pro C compiler and all the
    Pro C liberies .?
    thanks in advance.
    Ron Bar yosef

    Pro*C is a client side tool ans so will be available when you install the Oracle client.

  • Unable to locate the Pro Cobol Compiler

    I'm installed Oracle 9i client using Oracle 9.2.0.2.0 for HP-UX.
    The Pro Cobol compiler is not present in any of the installation options.
    Where can I download Oracle Pro Cobol compiler for Oracle 9.2.0.2.0 for HP-UX?
    G-

    after some research I found out that the Pro Cobol compiler is not available on the HP Itanium for version 9.2.0.1, 9.2.0.2 and 9.2.0.3. I will not be available until 9.2.0.4 or later per Oracle on Metalink

Maybe you are looking for

  • Background job requirement  in Systems like GRC

    Hi All, We will like to know periodic background job requirements in systems like GRC. May be rough volume of these jobs (defination) will help. Do these systems have process chains like BI and APO systems. Also do these systems have some interfaces

  • Special characters failing in wiki

    Anyone reporting the same problem? Try attach a dokument in a wikipage containing a special character, if the result is a missing png as the download/hower image, you experiencing the same as me. I guess its the .png generator that is non utf-8/unico

  • Export to PDF change default "Save As" file name

    Hello, I have an asp.net application where I use a CrystalReportViewer. The user runs the report via the application.  They then click on on the the Export button in the viewer with PDF as the format.  This launches the PDF file.  When I click the Sa

  • Request: Maps and Books but no Maps *in* Books?

    OK, I'm loving LR4 so far. Maybe I'm just easy to please or it's that Geolocation data and Bookmaking are exactly the things I've been missing in my enthusiast workflow focused a lot around travel and nature photography, but the headliners instantly

  • Can we call Tree Selection Listener this way..?

    Hi, I have written one class 'DemoTree' that implemets framework tree.In frame work tree We have All the listeners defined and all the listener methods have been implemented in 'DemoTree' class. Now I create one more class 'DemoTree2'.In this class I