gmp.h and 'g++ -mno-cygwin'
Gerrit P. Haase
gerrit@familiehaase.de
Mon Nov 22 14:02:00 GMT 2004
Alex Vinokur wrote:
> Here is file bar.cpp.
>
> ------ bar.cpp ------
> #include <gmp.h>
> int main ()
> {
> return 0;
> }
> ---------------------
>
> ------ Compilation ------
>
> $ cygcheck -c cygwin gmp gcc
> Cygwin Package Information
> Package Version Status
> cygwin 1.5.11-1 OK
> gcc 3.3.3-3 OK
> gmp 4.1.4-2 OK
>
>
> $ g++ bar.cpp -lgmp
Fine.
> $ g++ -mno-cygwin bar.cpp -lgmp
> bar.cpp:1:17: gmp.h: No such file or directory
You need a MinGW / Windows version of libgmp for this.
> -------------------------
>
> Is it possible to work with gmp in MinGW environment?
>
It seems to be possible to build a MinGW version, there are also some
instructions and binaries here: http://www.cs.nyu.edu/exact/core/gmp/
Gerrit
--
=^..^=
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list