Google Answers Logo
View Question
 
Q: Configuring DJGPP C compiler on Windows XP to run GMP bignum library ( No Answer,   0 Comments )
Question  
Subject: Configuring DJGPP C compiler on Windows XP to run GMP bignum library
Category: Computers > Programming
Asked by: novicecuser-ga
List Price: $15.00
Posted: 07 Oct 2006 19:24 PDT
Expires: 13 Oct 2006 18:00 PDT
Question ID: 771632
I'm a mechanical engineer, and I've done a fair amount of programming
over the years, but it's mostly been in high-level languages like
MATLAB. I am a novice C programmer, and this question concerns setting
up my C compiler to use an external library.

I want to use the GMP library (http://www.swox.com/gmp) to develop
some programs that process large numbers, but I'm having trouble
configuring and building the library so that I can actually use it. I
am new to the C programming language, and I have tried several
compilers, but it seems that the most appropriate one for this purpose
is the DJGPP compiler (http://www.delorie.com/djgpp). I have installed
this compiler on my Windows XP machine, and it works fine. I can
compile simple C programs without a problem.

However, I cannot build the GMP library. I downloaded and unzipped the
GMP folder. When I open the command prompt, navigate to the
GMP folder and type in "./configure" as per the instructions, it says:

      '.' is not recognized as an internal or external command,
operable program or batch file.

If I just type "configure" (which I believe is the same), the error is similar:

      'configure' is not recognized as an internal or external
command, operable program or batch file.

All I want to do is install GMP and build it so that I can run the
programs. What am I missing here?

Request for Question Clarification by keystroke-ga on 08 Oct 2006 08:09 PDT
Hello noviceuser,

I will post this as a clarification for now, but this should answer
your question. If in fact it does, let me know and I'll post it as the
official Answer. Thanks!

Configure and ./configure are linux commands for making executable
software. It won't work in Windows. You may need to search for the
English installation instructions.

Download this file:
http://www.swox.com/gmp/gmp-man-4.2.1.pdf

and scroll to page 18/19 and it explains how you can configure and
install your software.

Any questions, let me know.

--keystroke-ga

Request for Question Clarification by keystroke-ga on 08 Oct 2006 09:22 PDT
To clarify my previous post--

that is page 18/19 of the pdf file, not the document itself. 

--keystroke-ga

Clarification of Question by novicecuser-ga on 08 Oct 2006 15:43 PDT
I knew those were linux commands, but I thought that the purpose of
the DJGPP compiler was to make them work in Windows. Evidently that's
not correct. I had studied the section of the manual on p 18/19
several times, but it's not very helpful. It assures me that "on an MS
Windows system Cygwin, DJGPP and MINGW can be used [to build GMP],"
but it doesn't really say how.

If you could tell me the sequence of commands to use in the Windows
Command Prompt in order to install GMP on my system, I would really
appreciate it. Again, I do have DJGPP installed on my system, and it
does work to compile simple programs. Thanks.

Request for Question Clarification by keystroke-ga on 08 Oct 2006 16:41 PDT
Hello noviceuser,

At the bottom of page 18 it states the following.
"Microsoft also publishes an Interix ?Services for Unix? which can be
used to build GMP on Windows (with a normal ?./configure?), but it?s
not free software."
In otherwords in order to use configure and make you need to purchase
this software.

Hope that makes it clearer.

--Keystroke-ga

Request for Question Clarification by keystroke-ga on 08 Oct 2006 16:43 PDT
I have just done some searching on the microsoft website and it
appears that the software is now a FREE product.
You should be able to obtain it from here
http://www.microsoft.com/downloads/details.aspx?FamilyID=896c9688-601b-44f1-81a4-02878ff11778&DisplayLang=en
It is a 218MB download.

--Keystroke-ga

Request for Question Clarification by keystroke-ga on 08 Oct 2006 16:44 PDT
You may also want to read this website which gives you specifics for
using configure and make within sfu.
http://www.microsoft.com/technet/interopmigration/unix/sfu/inxscrpt.mspx

--Keystroke-ga

Clarification of Question by novicecuser-ga on 12 Oct 2006 17:32 PDT
Alas, Interix "will not install on Windows 9x or Windows XP Home
Edition." So that doesn't work. After some more hunting around, I
found the Cygwin compiler that replicates the Unix environment on
Windows XP (or something like that). After a bit of haggling, it
successfully installed GMP with the aforementioned commands. Thanks
anyway for your help.
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy