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>
//NTL_CLIENT
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++ 4.9.9.2
Compiler: Default compiler
Executing g++.exe...
g++.exe "D:\CPP\WinNTL-5_4\tests\BerlekampTest.cpp" -o
"D:\CPP\WinNTL-5_4\tests\BerlekampTest.exe"
-I"D:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include"
-I"D:\Dev-Cpp\include\c++\3.4.2\backward"
-I"D:\Dev-Cpp\include\c++\3.4.2\mingw32"
-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"
C:\DOCUME~1\chiang\LOCALS~1\Temp/cc44aaaa.o(.text+0x3c0):BerlekampTest.cpp:
undefined reference to `NTL::operator>>(std::istream&, NTL::ZZ&)'
C:\DOCUME~1\chiang\LOCALS~1\Temp/cc44aaaa.o(.text+0x3cb):BerlekampTest.cpp:
undefined reference to `NTL::ZZ_p::init(NTL::ZZ const&)'
C:\DOCUME~1\chiang\LOCALS~1\Temp/cc44aaaa.o(.text+0x3f3):BerlekampTest.cpp:
undefined reference to `NTL::operator>>(std::istream&, NTL::ZZ_pX&)'
C:\DOCUME~1\chiang\LOCALS~1\Temp/cc44aaaa.o(.text+0x42a):BerlekampTest.cpp:
undefined reference to `NTL::berlekamp(NTL::vec_pair_ZZ_pX_long&,
NTL::ZZ_pX const&, long)'
C:\DOCUME~1\chiang\LOCALS~1\Temp/cc44aaaa.o(.text+0x48f):BerlekampTest.cpp:
undefined reference to `NTL::mul(NTL::ZZ_pX&, NTL::vec_pair_ZZ_pX_long
const&)'
C:\DOCUME~1\chiang\LOCALS~1\Temp/cc44aaaa.o(.text+0x4b1):BerlekampTest.cpp:
undefined reference to `NTL::Error(char const*)'
C:\DOCUME~1\chiang\LOCALS~1\Temp/cc44aaaa.o(.text+0x5c3):BerlekampTest.cpp:
undefined reference to `NTL::operator<<(std::ostream&,
NTL::vec_pair_ZZ_pX_long const&)'

C:\DOCUME~1\chiang\LOCALS~1\Temp/cc44aaaa.o(.text+0x5fd):BerlekampTest.cpp:
undefined reference to
`NTL::vec_pair_ZZ_pX_long::~vec_pair_ZZ_pX_long()'
C:\DOCUME~1\chiang\LOCALS~1\Temp/cc44aaaa.o(.text+0x6be):BerlekampTest.cpp:
undefined reference to
`NTL::vec_pair_ZZ_pX_long::~vec_pair_ZZ_pX_long()'
C:\DOCUME~1\chiang\LOCALS~1\Temp/cc44aaaa.o(.text$_ZN3NTLgtERKNS_2ZZES2_[NTL::operator>(NTL::ZZ
const&, NTL::ZZ const&)]+0x18):BerlekampTest.cpp: undefined reference
to `_ntl_zcompare'
C:\DOCUME~1\chiang\LOCALS~1\Temp/cc44aaaa.o(.text$_ZN3NTLltERKNS_2ZZES2_[NTL::operator<(NTL::ZZ
const&, NTL::ZZ const&)]+0x18):BerlekampTest.cpp: undefined reference
to `_ntl_zcompare'
C:\DOCUME~1\chiang\LOCALS~1\Temp/cc44aaaa.o(.text$_ZN3NTL4swapERNS_5ZZ_pXES1_[NTL::swap(NTL::ZZ_pX&,
NTL::ZZ_pX&)]+0x14):BerlekampTest.cpp: undefined reference to
`NTL::swap(NTL::vec_ZZ_p&, NTL::vec_ZZ_p&)'
C:\DOCUME~1\chiang\LOCALS~1\Temp/cc44aaaa.o(.text$_ZN3NTL2ZZD1Ev[NTL::ZZ::~ZZ()]+0xd):BerlekampTest.cpp:
undefined reference to `_ntl_zfree'

C:\DOCUME~1\chiang\LOCALS~1\Temp/cc44aaaa.o(.text$_ZN3NTL5ZZ_pXD1Ev[NTL::ZZ_pX::~ZZ_pX()]+0xd):BerlekampTest.cpp:
undefined reference to `NTL::vec_ZZ_p::~vec_ZZ_p()'
C:\DOCUME~1\chiang\LOCALS~1\Temp/cc44aaaa.o(.text$_ZN3NTLeqERKNS_5ZZ_pXES2_[NTL::operator==(NTL::ZZ_pX
const&, NTL::ZZ_pX const&)]+0x14):BerlekampTest.cpp: undefined
reference to `NTL::operator==(NTL::vec_ZZ_p const&, NTL::vec_ZZ_p
const&)'
C:\DOCUME~1\chiang\LOCALS~1\Temp/cc44aaaa.o(.text$_ZN3NTL7GetTimeEv[NTL::GetTime()]+0x7):BerlekampTest.cpp:
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:
>C:\DOCUME~1\chiang\LOCALS~1\Temp/cc44aaaa.o(.text$_ZN3NTL7GetTimeEv[NTL::GetTime()]+0x7):BerlekampTest.cpp:
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
system.

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

0
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:...
0
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...
1
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...
0
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...
0
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...
0
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...
3
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...
1
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...
1
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...
1
isladogs
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...
3
isladogs
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...
0
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...
2
isladogs
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...
0
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...
0
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...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
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...
0
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.