Oracle Pro*C with Redhat Linux 7.3
"Anders Wong" <[email protected]> Thu, 10 Apr 2003 19:24:25 +0800
| Newsgroups | gmane.comp.db.oracle.devel |
|---|---|
| Message-ID | <LYRIS-1796914-947221-2003.04.10-12.20.37--gcdod-oracle#[email protected]> |
Hi there,
I have successfully compiled the Proc*C under Solaris Unix, but I
tried to compile it under Redhat Linux 7.3. I got the following error. Some
FAQ said.. the problem is from gcc compiler... but I couldn't find many
cases
of this problem.. if you anyone knows how can I fix it, pls give me hints
pls.
Thank You In Advance.
Best Regards,
Anders
==============Error=============================
System default option values taken from:
/opt/OraHome/precomp/admin/pcscfg.cfg
gcc -g -I/opt/OraHome/rdbms/demo -I/opt/OraHome/rdbms/public -I/opt/OraHome/
plsql/public -I/opt/OraHome/network/public -I/opt/OraHome/precomp/public -o
batching.o -c batching.c
batching.pc: In function `time_print':
batching.pc:2688: warning: declaration of `pfile' shadows a parameter
batching.pc: In function `print_line':
batching.pc:2699: warning: declaration of `pfile' shadows a parameter
gcc -o batching -L/opt/OraHome/lib -L/opt/OraHome/rdbms/lib batching.o
/opt/OraHome/rdbms/lib/defopt.o /opt/OraHome/lib/sscoreed.o
/opt/OraHome/lib/libclntsh.so /opt/OraHome/lib/nautab.o
/opt/OraHome/lib/naeet.o /opt/OraHome/lib/naect.o /opt/OraHome/lib/naedhs.o
batching.o
batching.o: In function `main':
/home/oracle/anders/proc/batching.pc:164: multiple definition of `main'
batching.o:/home/oracle/anders/proc/batching.pc:164: first defined here
batching.o: In function `time_print':
/home/oracle/anders/proc/batching.pc:2688: multiple definition of
`time_print'
batching.o:/home/oracle/anders/proc/batching.pc:2688: first defined here
batching.o: In function `print_line':
/home/oracle/anders/proc/batching.pc:2699: multiple definition of
`print_line'
batching.o:/home/oracle/anders/proc/batching.pc:2699: first defined here
batching.o: In function `batch_quota_change':
/home/oracle/anders/proc/batching.pc:2707: multiple definition of
`batch_quota_change'
batching.o:/home/oracle/anders/proc/batching.pc:2707: first defined here
collect2: ld returned 1 exit status
make: *** [batching] Error 1
---
Change your mail options at http://p2p.wrox.com/manager.asp or
to unsubscribe send a blank email to [email protected].