ProC/C++ on Linux undefined reference error
From: Julia Sennikovski <jsennikovski_at_ups.edu>
Date: 15 Oct 2002 08:50:29 -0700
Message-ID: <61b7b12c.0210150750.3ccf5de9_at_posting.google.com>
Hello,
[Quoted] When compiling the code (Linux 7.2, Oracle 8i, ProC/C++) I get the number of undefined references. The paths to libraries seem to be correct… And I do have <string.h> included… If you know what the problem may be, could you, please, help me solve it?
Thank you,
Julia.
-I/usr/local/oracle/product/8.1.7/network/public manreg.c
Date: 15 Oct 2002 08:50:29 -0700
Message-ID: <61b7b12c.0210150750.3ccf5de9_at_posting.google.com>
Hello,
[Quoted] When compiling the code (Linux 7.2, Oracle 8i, ProC/C++) I get the number of undefined references. The paths to libraries seem to be correct… And I do have <string.h> included… If you know what the problem may be, could you, please, help me solve it?
Thank you,
Julia.
System default option values taken from: /usr/local/oracle/product/8.1.7/precomp/admin/pcscfg.cfg
g++ -w -c -I. -I/usr/local/oracle/product/8.1.7/precomp/public-I/usr/local/oracle/product/8.1.7/plsql/public
-I/usr/local/oracle/product/8.1.7/rdbms/public
-I/usr/local/oracle/product/8.1.7/rdbms/demo
-I/usr/local/oracle/product/8.1.7/network/public manreg.c
g++ -o manreg manreg.o -L /usr/local/oracle/product/8.1.7/lib/
-lclntsh `cat /usr/local/oracle/product/8.1.7/lib/sysliblist` -ldl
-lm
manreg.o: In function `fileLock::setFilename(basic_string<char,
string_char_traits<char>, __default_alloc_template<true, 0> > const
&)':
manreg.o(.text+0x138): undefined reference to `strcpy(char *, char
const *)'
manreg.o(.text+0x14c): undefined reference to `strcat(char *, char
const *)'
.
.
more
.
.
Received on Tue Oct 15 2002 - 17:50:29 CEST