Hi list,

I have a small question:

I have written some C++ classes to warp GMP (GNU
Multipile Precision library). The GMP library on my
SuSe 6.3 system is at /usr/lib/libgmp.a and the header
file for it is at /usr/include/gmp.h . I have a
Makefile for compiling it but the real command for
compiling some files is:

 g++ -g -O -o -lgmp *.C 

The linker (ld) produces an error for every gmp
function (like: 
void mpz_add(mpz_t ROP, mpz_t OP1, mpz_t OP2) 
). The error says:

..undefined refrence to void mpz_add(...) ...

Such line for any function I call from the gmp
library, and this is a lot as the warper obviously
calls them all (expect some I/O functions which I have
rewrited).

THE BOTTOM LINE: What is the problem here??? (the
compiler is g++ 2.7.x). I have added the library with
the -l switch (g++ ... -lgmp ..) and the library is in
the default library search pass (/usr/lib). Also there
is an 
..extern "C" {
..
}...
statement in the gmp header file. What is the problem,
please help :-)

Bye,
Ilya 'rilel' Khayutin

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to