473,387 Members | 1,899 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,387 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 3975
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.