delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/09/30/07:15:57

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <415be77d$0$173$cc7c7865@news.luth.se>
From: Martin Str|mberg <ams AT speedy DOT ludd DOT ltu DOT se>
Subject: Re: Need help with NTL installation
Newsgroups: comp.os.msdos.djgpp
References: <ada5828f DOT 0409292050 DOT 789b6dd1 AT posting DOT google DOT com>
User-Agent: tin/1.4.6-20020816 ("Aerials") (UNIX) (NetBSD/1.6Q (alpha))
Date: 30 Sep 2004 11:01:17 GMT
Lines: 61
NNTP-Posting-Host: speedy.ludd.ltu.se
X-Trace: 1096542077 news.luth.se 173 130.240.16.13
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Trav <lzwnews AT yahoo DOT com> wrote:
> I tried installing NTL (http://www.shoup.net/ntl/), but simply
> couldn't get it to work with DJGPP. According to its instructions at

> http://www.shoup.net/ntl/doc/tour-win.html

I note that that page says "The WinNTL distribution of NTL can be used
on any Windows 95 or NT platform (but not on Windows 3.11 or
earlier). Actually, there is nothing Windows-specific about
WinNTL. The source code is identical to the UNIX NTL distribution;
only the packaging is slightly different, and no assumptions are made
about the program development environment."

That "not on Windows 3.11" sounds discouraging but "identical to the
UNIX NTL distribution" sounds good. If this WINDOWS package fails, you
should try with the Unix distribution.


For us who isn't born with the knowledge what NTL is,
<http://www.shoup.net/ntl/doc/tour-intro.html> reveals that "NTL is a
high-performance, portable C++ library providing data structures and
algorithms for arbitrary length integers; for vectors, matrices, and
polynomials over the integers and over finite fields; and for
arbitrary precision floating point arithmetic."


> it said 

> "First, compile all of the files in "src", and create a static
> library."

> Ok I compiled with a -c, and obtained a bunch of *.o files.

After that you need to create the library. "info ar" for that
information.

> "Make sure the compiler knows where to find NTL's include files
> (directory "include" and not "include/NTL")"

> I'm not so sure about this step, but I copied all the *.h files into
> /djgpp/include directory.

That isn't very modularised. Use "-I" to gcc/gpp instead. "info gcc"
for more information.

> "Then, to compile a program using the library, make sure the compiler
> knows about the library and the directory of NTL's include files."

> Which totally stumped me. I checked the DJGPP FAQ multiple times but
> nothing seemed to be of help. Could any kind soul please help? Thanks.

Well as there aren't very many questions about NTL, it's no wonder if
it isn't in the FAQ. Furthermore that is ordinary compilator usage so
the compilator documentation is where you should look. To let gcc/gpp
know about libraries and include files you want to use "-L", "-l" and
"-I". Again, "info gcc" is your friend.


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019