[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
compile using Oracle Pro*C and Gtk+
From: |
Cicone.Tony |
Subject: |
compile using Oracle Pro*C and Gtk+ |
Date: |
Wed, 5 Mar 2003 13:15:33 -0500 |
Greetings,
I want
to compile a C program that has Oracle PL/SQL and Gtk in it. I added the
following lines to the default makefile for Oracle Pro*C
CFLAGS=-Wall -O2 -g
`gtk-config --cflags`
LDFLAGS=-g
LDADD=`gtk-config
--libs`
I also
added the following to $ORACLE_HOME/precomp/admin/pcscfg.cfg
sys_include=(/usr/include,/usr/include/sys,/usr/local/include,/usr/local/include/gtk,/usr/local/include/gdk,/usr/local/lib/glib/include,/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/3.0.1/include,/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/3.0.1/include/root/usr/lpp/X11/include)
And I use the following command to
compile.
make -f demo_proc.mk
build OBJS=create_imm_user_gui.o EXE=create_imm_user_gui
CC=gcc
But I get the following errors when
compiling.
Pro*C/C++: Release
8.1.7.1.0 - Production on Wed Mar 5 13:14:10 2003
(c) Copyright 2000
Oracle Corporation. All rights reserved.
System default
option values taken from:
/opt/oracle/product/SE_8.1.7/precomp/admin/pcscfg.cfg
Syntax error at line
1295, column 29, file /usr/local/include/glib.h:
Error at line 1295, column
29 in file /usr/local/include/glib.h
#define g_error(format,
args...) g_log (G_LOG_DOMAIN,
\
............................1
PCC-S-02014, Encountered the symbol "..."
when expecting one of the following:
,
)
The symbol ")" was substituted for "..." to continue.
Syntax error at line
52, column 9, file /usr/local/include/gdk/gdktypes.h:
Error at line 52,
column 9 in file /usr/local/include/gdk/gdktypes.h
typedef
gulong
GdkAtom;
........1
PCC-S-02201, Encountered the symbol "gulong" 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,
The symbol "enum,"
was substituted for "gulong" to continue.
Syntax error at line
97, column 40, file /usr/local/include/gdk/gdktypes.h:
Error at line 97,
column 40 in file /usr/local/include/gdk/gdktypes.h
typedef void
(*GdkEventFunc) (GdkEvent
*event,
.......................................1
PCC-S-02201, Encountered
the symbol "*" when expecting one of the following:
,
)
Error at line 0,
column 0 in file create_imm_user_gui.pc
PCC-F-02102, Fatal error while doing
C preprocessing
make: 1254-004 The error code from the last command is
1.
Thanks
for any assistance that can be provided.
Anthony G. Cicone, Jr.
Systems
Administrator
IGT Online Entertainment
Systems
(410)986-2241
- compile using Oracle Pro*C and Gtk+,
Cicone.Tony <=