compile GMP for Visual C++?

Jacek Blaszczynski jacek.blaszczynski at acn.waw.pl
Tue Jul 6 00:00:06 CEST 2004


Hello!

I tried to compile gmp-4.1.3 using projects from 

http://fp.gladman.plus.com/computing/gmp4win.htm

Unfortunately, there are multiple compile errors in gmp-impl.h file, which
was supposed to be replaced by zipped package, but was not.
Any ideas how to fix it?

Cheers

Jacek

PS. Error output

Compiling...
urandomb.c
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(667) : error C2061:
syntax error : identifier '__attribute__'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(667) : error C2059:
syntax error : ';'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(667) : error C2059:
syntax error : 'type'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(768) : error C2061:
syntax error : identifier '__attribute__'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(768) : error C2059:
syntax error : ';'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(768) : error C2059:
syntax error : 'type'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(782) : error C2061:
syntax error : identifier '__attribute__'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(782) : error C2059:
syntax error : ';'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(782) : error C2059:
syntax error : 'type'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(1315) : error C2061:
syntax error : identifier '__attribute__'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(1315) : error C2059:
syntax error : ';'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(1315) : error C2182:
'noreturn' : illegal use of type 'void'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2445) : error C2061:
syntax error : identifier '__attribute__'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2445) : error C2059:
syntax error : ';'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2446) : error C2061:
syntax error : identifier '__attribute__'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2446) : error C2059:
syntax error : ';'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2446) : error C2059:
syntax error : 'type'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2447) : error C2061:
syntax error : identifier '__attribute__'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2447) : error C2059:
syntax error : ';'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2447) : error C2059:
syntax error : 'type'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2448) : error C2061:
syntax error : identifier '__attribute__'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2448) : error C2059:
syntax error : ';'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2448) : error C2059:
syntax error : 'type'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2449) : error C2061:
syntax error : identifier '__attribute__'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2449) : error C2059:
syntax error : ';'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2449) : error C2059:
syntax error : 'type'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2566) : error C2061:
syntax error : identifier '__attribute__'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2566) : error C2059:
syntax error : ';'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2566) : error C2059:
syntax error : 'type'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2571) : error C2061:
syntax error : identifier '__attribute__'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2571) : error C2059:
syntax error : ';'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2571) : error C2182:
'noreturn' : illegal use of type 'void'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2572) : error C2061:
syntax error : identifier '__attribute__'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2572) : error C2059:
syntax error : ';'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2572) : error C2182:
'noreturn' : illegal use of type 'void'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2573) : error C2061:
syntax error : identifier '__attribute__'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2573) : error C2059:
syntax error : ';'
e:\Libraries and Components\GNU MP\gmp-4.1.3\gmp-impl.h(2573) : error C2182:
'noreturn' : illegal use of type 'void'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /list-archives/gmp-discuss/attachments/20040706/272eede1/attachment.htm


More information about the gmp-discuss mailing list