473,226 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

problem compiling WinNTL on Windows system.

// big_integer.cpp
#include <NTL/ZZ.h>
int main()
ZZ a;//, b, c;
// cin >a;
// cin >b;
// c = (a+1)*(b+1);
// cout << c << "\n";
return 0;
// end of source. download form www.shoup.net
// Compiler: Dev-c++
Compiler: Default compiler
Executing g++.exe...
g++.exe "D:\CPP\WinNTL-5_4\tests\BerlekampTest.cpp" -o
-I"D:\Dev-Cpp\include\c++\3.4.2" -I"D:\Dev-Cpp\include"
-I"D:\CPP\WinNTL-5_4\include" -L"D:\Dev-Cpp\lib"
-L"D:\CPP\Numerical_Recipes\recipies" -L"D:\CPP\WinNTL-5_4"
undefined reference to `NTL::operator>>(std::istream&, NTL::ZZ&)'
undefined reference to `NTL::ZZ_p::init(NTL::ZZ const&)'
undefined reference to `NTL::operator>>(std::istream&, NTL::ZZ_pX&)'
undefined reference to `NTL::berlekamp(NTL::vec_pair_ZZ_pX_long&,
NTL::ZZ_pX const&, long)'
undefined reference to `NTL::mul(NTL::ZZ_pX&, NTL::vec_pair_ZZ_pX_long
undefined reference to `NTL::Error(char const*)'
undefined reference to `NTL::operator<<(std::ostream&,
NTL::vec_pair_ZZ_pX_long const&)'

undefined reference to
undefined reference to
const&, NTL::ZZ const&)]+0x18):BerlekampTest.cpp: undefined reference
to `_ntl_zcompare'
const&, NTL::ZZ const&)]+0x18):BerlekampTest.cpp: undefined reference
to `_ntl_zcompare'
NTL::ZZ_pX&)]+0x14):BerlekampTest.cpp: undefined reference to
`NTL::swap(NTL::vec_ZZ_p&, NTL::vec_ZZ_p&)'
undefined reference to `_ntl_zfree'

undefined reference to `NTL::vec_ZZ_p::~vec_ZZ_p()'
const&, NTL::ZZ_pX const&)]+0x14):BerlekampTest.cpp: undefined
reference to `NTL::operator==(NTL::vec_ZZ_p const&, NTL::vec_ZZ_p
undefined reference to `_ntl_GetTime'
collect2: ld returned 1 exit status

Execution terminated

Oct 10 '06 #1
1 3968
On 9 Oct 2006 19:02:44 -0700, "jarod" <ch*******@hotmail.comwrote:
undefined reference to `_ntl_GetTime'
collect2: ld returned 1 exit status

Execution terminated
Those are probably linker errors. You need to add the appropriate
lib(s) as input for the linker according to the requirements of your

Good luck,
Roland Pibinger
Oct 10 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Luca | last post by:
Hi all. I've a problem compiling PHP (both 4.3.6 and 5 rc2) with ldap support (--with-ldap). "configure" doesn't return any error, but when I launch "make" it returns: grep:...
by: Francisco J. Reyes | last post by:
I get an Internal complier error when compiling C# windows project that uses a custom Class add as reference to the project. The problem appears to be related to the ENUM type used in the class...
by: martin smith | last post by:
I have some old CBT software written in a package called IconAuthor. It uses Access database to store details of lessons, graphics filenames, sounds etc. The software creates a user DSN which...
by: Usman | last post by:
Hi there I'm having problem compiling my code. I have a library along with its header file that I've used in my Com project. On compilation I get this linking error. Does anyone have any idea...
by: erkidevries | last post by:
Problem compiling Tkinter program with bmp images (using py2exe) I have a Tkinter gui program that uses bmp as backgrounds. The program itself works when I run from the source. I placed the...
by: Budhi Saputra Prasetya | last post by:
Hi, I still have the same problem with embedding Windows Control. I'll just requote what I posted last time: I managed to create a Windows Form Control and put it on my ASP .NET page. I...
by: Krishna Kirti Das | last post by:
I am a long-time user of Perl who comes to you in peace and is evaluating different scripting languages for use as a scripting platform for system administrators on the Windows platform. Perl...
by: thomasc | last post by:
Hello, This is about VB.NET2003. I'm trying to obtain the RGB value of a Windows system color and use it as the background color of my Microsoft Word file. But I have not been able to find...
by: dviry | last post by:
hello , i need to do some things with windows system time . the problem is that i need to change windows system time - and i dont know how to change it . datetime.new - can't get any...
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.