Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Error while including math.h

Error while including math.h

From: Kim Titu <kimtitu_at_yahoo.com>
Date: 18 Mar 2002 15:40:24 -0800
Message-ID: <f7ad0b58.0203181540.375b2151@posting.google.com>


Hi,

   I have a simple Pro C program which connect to Oracle 8.1.7 and do nothing. It is compiled fine and run without any problem. However, if i add a statement "#include <math.h>", i get bunch of proc compilation error. It seems like Pro C cannot find the math library. I have a fresh installation of Oracle9i client on my default RH7.2 system. I only modify my pcscfg.cfg file and it look like this



sys_include=(/home/oracle/precomp/public,/usr/include,/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/,/usr/include)
include=(/home/oracle/precomp/public)
include=(/home/oracle/rdbms/demo)
include=(/home/oracle/network/public)
include=(/home/oracle/plsql/public)

ltype=short

I have my own make file and it look like this. My Proc file name is host.pc



INCLUDE_DIR=-I$(ORACLE_HOME)/precomp/admin -I$(ORACLE_HOME)/lib -I/usr/lib/
LIB_DIR=-L$(ORACLE_HOME)/lib -lm -lsql -lclntsh

all:host.c

        gcc -o host host.c $(INCLUDE_DIR) $(LIB_DIR) host.c:host.pc

        proc host.pc



Can someone help me?

Regards,

~ Received on Mon Mar 18 2002 - 17:40:24 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US