bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HELP!!


From: command . cis92
Subject: HELP!!
Date: Thu, 25 Mar 2004 20:17:55 +0800
User-agent: Internet Messaging Program (IMP) 4.0-cvs

./configure --enable-cxx
[root (none)@~/gmp-4.1.2]$ ./config.guess
pentiummmx-pc-linux-gnu
[root (none)@~/gmp-4.1.2]$ ./configfsf.guess
i586-pc-linux-gnu


source:

#include<iostream>
#include<gmpxx.h>

using namespace std;

int main (void)
{
        mpz_class a, b, c;

        a = 1234;
        b = "-5678";
        c = a+b;
        cout << "sum is " << c << "\n";
        cout << "absolute value is " << abs(c) << "\n";

        return 0;
}

Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)

[root (none)@~]$ g++ a.cpp -lgmpxx -lgmp
[root (none)@~]$ ./a.out
./a.out: relocation error: ./a.out: undefined symbol:
__ls__FR7ostreamPC12__mpz_struct

I can compile the code ,but i can't run it.


-------------------------------------------------
This mail sent through NCTU WebMail System: https://webmail.nctu.edu.tw





reply via email to

[Prev in Thread] Current Thread [Next in Thread]