Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 67605

Summary: NTL problem
Product: Gentoo Linux Reporter: David Grant <davidgrant>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description David Grant 2004-10-14 17:36:41 UTC
Someone please tell me I am not retarded.  I have no idea what is going on here.

#include <NTL/ZZ.h>
#include <iostream>

int main()
{
   ZZ a, b, c; 

   cin >> a; 
   cin >> b; 
   c = (a+1)*(b+1);
   cout << c << "\n";
}

I run g++ -o ntl_test ntl_test.cc and I get a 'ZZ' undeclared issue.  I can find ZZ.h but it's not getting the definition of the ZZ class properly.
Comment 1 David Grant 2004-10-14 22:56:20 UTC
it needed using namespace NTL and also -lntl as argument to g++