help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to compile using Oracle Pro*C and Gtk+?


From: pvhieu
Subject: How to compile using Oracle Pro*C and Gtk+?
Date: Thu, 05 May 2011 00:50:23 -0700
User-agent: Roundcube Webmail/0.4.2


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.
I'm geting error when build:


Pro*C/C++: Release 11.2.0.2.0 - Production on Thu May 5 14:29:34 2011

Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

System default option values taken from: /root/PayBox/instantclient_11_2/precomp/admin/pcscfg.cfg

make[1]: Leaving directory `/root/PayBox/TEST/oracle'
/usr/bin/gcc -m32 -O2 -fPIC -DPRECOMP -I/root/PayBox/instantclient_11_2/sdk/include -DLINUX -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -DSLTS_ENABLE -DSLMXMX_ENABLE -D_REENTRANT -DNS_THREADS -c sc_pf_Main.c
sc_pf_Main.c: In function ‘main’:
sc_pf_Main.c:326: warning: assignment makes pointer from integer without a cast ln /root/PayBox/instantclient_11_2/libclntsh.so.11.1 /root/PayBox/instantclient_11_2/libclntsh.so /usr/bin/gcc -m32 -o cnn sc_pf_OracleProcess.o sc_pf_Main.o -L/opt/PostgreSQL/8.4/lib/ -lpq -g -L/root/PayBox/instantclient_11_2/ -lclntsh -ldl -lm -pthread -Wl,--export-dynamic -lgthread-2.0 -lrt -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
rm -rf /root/PayBox/instantclient_11_2/libclntsh.so
address@hidden oracle]# make -f make.mk build
rm -rf SunWS_cachea
rm -rf /root/PayBox/instantclient_11_2/libclntsh.so
make -f make.mk PROCFLAGS="yes" PCCSRC=sc_pf_OracleProcess I_SYM=include= pc1
make[1]: Entering directory `/root/PayBox/TEST/oracle'
/root/PayBox/instantclient_11_2/sdk/proc yes iname=sc_pf_OracleProcess include=. sys_include=\(/root/PayBox/instantclient_11_2/sdk/include,/opt/PostgreSQL/8.4/include/,/usr/include/gtk-2.0,/usr/lib/gtk-2.0/include,/usr/include/atk-1.0,/usr/include/cairo,/usr/include/pango-1.0,/usr/include/glib-2.0,/usr/lib/glib-2.0/include,/usr/include/pixman-1,/usr/include/freetype2,/usr/include/libpng12,/usr/include,/usr/include/gtk-2.0/gtk,/usr/include/glib-2.0/,/usr/lib/gcc/i586-redhat-linux/4.4.0/include\)

Pro*C/C++: Release 11.2.0.2.0 - Production on Thu May 5 14:29:54 2011

Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

System default option values taken from: /root/PayBox/instantclient_11_2/precomp/admin/pcscfg.cfg

Error at line 2, column 12 in file /usr/include/asm/posix_types.h
#  include "posix_types_32.h"
...........1
PCC-S-02015, unable to open include file
Parser error at line 70, column 23, file /usr/include/gtk-2.0/gtk/gtkwidget.h: Error at line 70, column 23 in file /usr/include/gtk-2.0/gtk/gtkwidget.h
  GTK_RC_STYLE         = 1 << 16,
......................1
PCC-F-02209, Macro invocation has incorrect number of arguments
Error at line 0, column 0 in file sc_pf_OracleProcess.pc
PCC-F-02102, Fatal error while doing C preprocessing
make[1]: *** [pc1] Error 1
make[1]: Leaving directory `/root/PayBox/TEST/oracle'
make: *** [sc_pf_OracleProcess.c] Error 2

Please help me. Thanks for any assistance that can be provided.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]