Fedora Linux Support Community & Resources Center
Prev Previous Post   Next Post Next
  #1  
Old 12th September 2009, 11:26 AM
Jakiro Offline
Registered User
 
Join Date: Mar 2009
Location: Singapore
Posts: 8
linuxfedorafirefox
compiling c++ programs with NTL library

Hi, does anyone know how to compile c++ programs that uses the NTL library( http://www.shoup.net/ntl )?

I have installed the package ntl-devel by using yum.
Now I have a simple c++ program that uses NTL:
Code:
#include <NTL/ZZ.h>

NTL_CLIENT

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

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

   return 0
}
How do I compile this program with g++?
The usual
Code:
g++ example.cpp -o example
does not work.
Reply With Quote
 

Tags
compiling, library, ntl, programs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Boost library compiling errors redawn Programming & Packaging 5 4th April 2009 08:41 PM
Problem compiling Mesa library Shai Using Fedora 3 24th October 2007 03:20 PM
Compiling Allegro game library. marcin2 Using Fedora 0 28th June 2005 01:36 AM


Current GMT-time: 21:19 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat