ProC warning with GCC and Oracle 9 [message #94333] |
Sun, 08 August 2004 05:18 |
Fred
Messages: 34 Registered: August 1999
|
Member |
|
|
Hi,
I am compiling a very simple program written in
ProC. I can compile the program using proc filename.pc
My configuration :
gcc 3.3.2
Oracle 9.2.0.1.0
AIX 5.2
I used makefile like this
#==============================================================================
# Pro*c
#==============================================================================
PROC = proc
PROC_OPTIONS = parse=none
SQLCHECK=SEMANTICS
USERID=/
INCLUDE='($(ORACLE_HOME)/precomp,$(DIR_H))'
MODE=ORACLE
DBMS=V8
UNSAFE_NULL=YES
LTYPE=NONE
LINES=YES
#==============================================================================
# Compilateur c
#==============================================================================
GCC = gcc
GCC_OPTIONS = -D_UNIX98 -D_LARGE_FILES -D_XOPEN_SOURCE $(TRACE)
-Wsign-compare -ansi
-Werror-implicit-function-declaration
-Wformat
-Wimplicit-int
-Wmain
-Wreturn-type
-O3
CC = $(GCC)
CC_OPTIONS = $(GCC_OPTIONS)
CC_INCLUDES = -I"$(DIR_H)"
-I"$(ORACLE_HOME)/precomp/public/"
-I"$(ORACLE_HOME)/lib32/"
---------------------------------------------------------------------------------------------------------
and I am receiving a linker warning :
compilation de ../obj/SNT_RefTables
../c/SNT_RefTables.c:109: warning: type defaults to `int' in declaration of `sqlcxt'
../c/SNT_RefTables.c:111: warning: type defaults to `int' in declaration of `sqlcx2t'
../c/SNT_RefTables.c:113: warning: type defaults to `int' in declaration of `sqlbuft'
../c/SNT_RefTables.c:114: warning: type defaults to `int' in declaration of `sqlgs2t'
../c/SNT_RefTables.c:115: warning: type defaults to `int' in declaration of `sqlorat'
Can any one have any idea what can be done?
Any suggestions or comments will be appreciated.
Thanks in advance,
Best Regards,
Fred
|
|
|