This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Linking


This is the command I run:

g++ main.o db.o prime.o -o prime -ldb_cxx -lbig_num 2>error

This is what is in the file "error":

db.o: In function `Prime_func::store(unsigned long)':
db.o(.text+0x39): undefined reference to `Dbt::Dbt[in-charge](void*, unsigned)'
db.o(.text+0x60): undefined reference to `Dbt::Dbt[in-charge](void*, unsigned)'
db.o(.text+0x8e): undefined reference to `Db::put(DbTxn*, Dbt*, Dbt*, unsigned)'
db.o(.text+0xa2): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o(.text+0xad): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o(.text+0xc0): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o(.text+0xd6): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o: In function `Prime_func::store_pos()':
db.o(.text+0x11b): undefined reference to `Dbt::Dbt[in-charge](void*, unsigned)'
db.o(.text+0x135): undefined reference to `Dbt::Dbt[in-charge](void*, unsigned)'
db.o(.text+0x163): undefined reference to `Db::put(DbTxn*, Dbt*, Dbt*, unsigned)'
db.o(.text+0x16e): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o(.text+0x179): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o(.text+0x18c): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o(.text+0x1a2): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o: In function `Prime_func::access(unsigned long)':
db.o(.text+0x1f1): undefined reference to `Dbt::Dbt[in-charge](void*, unsigned)'
db.o(.text+0x1ff): undefined reference to `Dbt::Dbt[in-charge]()'
db.o(.text+0x233): undefined reference to `Db::get(DbTxn*, Dbt*, Dbt*, unsigned)'
db.o(.text+0x32d): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o(.text+0x33b): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o(.text+0x388): undefined reference to `Dbt::get_data() const'
db.o(.text+0x48a): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o(.text+0x498): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o(.text+0x4b4): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o(.text+0x4d6): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o: In function `Prime_func::access_pos()':
db.o(.text+0x523): undefined reference to `Dbt::Dbt[in-charge](void*, unsigned)'
db.o(.text+0x52e): undefined reference to `Dbt::Dbt[in-charge]()'
db.o(.text+0x55c): undefined reference to `Db::get(DbTxn*, Dbt*, Dbt*, unsigned)'
db.o(.text+0x582): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o(.text+0x58d): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o(.text+0x5a1): undefined reference to `Dbt::get_data() const'
db.o(.text+0x5cb): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o(.text+0x5d6): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o(.text+0x5f0): undefined reference to `Dbt::~Dbt [in-charge]()'
db.o(.text+0x606): undefined reference to `Dbt::~Dbt [in-charge]()'
prime.o: In function `Prime_func::Prime_func[not-in-charge](char const*)':
prime.o(.text+0x8b): undefined reference to `Db::Db[in-charge](DbEnv*, unsigned)'
prime.o(.text+0xc2): undefined reference to `Db::open(char const*, char const*, DBTYPE, unsigned, int)'
prime.o(.text+0x1fc): undefined reference to `Db::~Db [in-charge]()'
prime.o: In function `Prime_func::Prime_func[in-charge](char const*)':
prime.o(.text+0x26d): undefined reference to `Db::Db[in-charge](DbEnv*, unsigned)'
prime.o(.text+0x2a4): undefined reference to `Db::open(char const*, char const*, DBTYPE, unsigned, int)'
prime.o(.text+0x3de): undefined reference to `Db::~Db [in-charge]()'
prime.o: In function `Prime_func::~Prime_func [not-in-charge]()':
prime.o(.text+0x423): undefined reference to `Db::close(unsigned)'
prime.o(.text+0x433): undefined reference to `Db::~Db [in-charge]()'
prime.o: In function `Prime_func::~Prime_func [in-charge]()':
prime.o(.text+0x45f): undefined reference to `Db::close(unsigned)'
prime.o(.text+0x46f): undefined reference to `Db::~Db [in-charge]()'
/usr/lib/libdb_cxx.so: undefined reference to `cerr'
/usr/lib/libdb_cxx.so: undefined reference to `ios::fail(void) const'
/usr/lib/libdb_cxx.so: undefined reference to `ostream::operator<<(char const *)'
collect2: ld returned 1 exit status

I have rebuilt big_num and db_cxx since I upgraded to gcc version 3.2.

Please tell me what is going on.

thx



_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]