ProC warning with GCC and Oracle 9

From: Fred <frederic.lagarde3_at_wanadoo.fr>
Date: 8 Aug 2004 06:28:31 -0700
Message-ID: <5929d6a8.0408080528.34d7679e_at_posting.google.com>



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 Received on Sun Aug 08 2004 - 15:28:31 CEST

Original text of this message