GMP Compile Error
recurphy_at_yahoo.com
Date: 05/31/04
- Next message: Victor Bazarov: "Re: Simulatneous declare/initialize member variable"
- Previous message: Rolf Magnus: "Re: function template"
- Next in thread: Rolf Magnus: "Re: GMP Compile Error"
- Reply: Rolf Magnus: "Re: GMP Compile Error"
- Reply: Gianni Mariani: "Re: GMP Compile Error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 31 May 2004 08:38:56 -0700
I tried to use GMP on a Unix machine, but received errors. What should I do?
C++ Code:
#include <iostream>
#include <gmp.h>
int
main ()
{
mpz_t z;
mpz_init (z);
cin >> z;
cout << z << endl;
}
Command:
g++ gmp.cpp
Message:
Undefined first referenced
symbol in file
__gmpz_init /var/tmp/ccvV4wON.o
__ls__FR7ostreamPC12__mpz_struct /var/tmp/ccvV4wON.o
__rs__FR7istreamP12__mpz_struct /var/tmp/ccvV4wON.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
- Next message: Victor Bazarov: "Re: Simulatneous declare/initialize member variable"
- Previous message: Rolf Magnus: "Re: function template"
- Next in thread: Rolf Magnus: "Re: GMP Compile Error"
- Reply: Rolf Magnus: "Re: GMP Compile Error"
- Reply: Gianni Mariani: "Re: GMP Compile Error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]