<div>Hi,</div>
<div> </div>
<div>I am trying out gmp v4.2.4 with C++ support after applying the patches for v4.2.4 (<a href="http://gmplib.org/">http://gmplib.org/</a>) but the compilation fails. I am using the studio-12 cc compiler. </div>
<div> </div>
<div>Are there any known issues when c++ is enabled with gmp? (P.S. I am trying out gmp for the gcc build). Any suggestions before look into the code?</div>
<div> </div>
<div>thanks,</div>
<div>- JNR</div>
<div> </div>
<div><></div>
<div>/bin/bash ../libtool --mode=compile CC -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMPXX -I.. -I/usr/local/pkgs/gmp-4.2.4/include -xO5 -xarch=sse3 -g -c -o isfuns.lo isfuns.cc<br>CC -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMPXX -I.. -I/usr/local/pkgs/gmp-4.2.4/include -xO5 -xarch=sse3 -g -c isfuns.cc -KPIC -DPIC -o .libs/isfuns.o<br>
"../gmp-impl.h", line 320: Warning: attribute malloc is unsupported and will be skipped..<br>"../gmp-impl.h", line 851: Warning: Attribute name expected instead of const..<br>"../gmp-impl.h", line 851: Warning: attribute is unsupported and will be skipped..<br>
"../gmp-impl.h", line 851: Error: ")" expected instead of "const".<br>"../gmp-impl.h", line 851: Error: The function "__gmpn_jacobi_base(unsigned long, unsigned long, int) const" cannot be declared const.<br>
"../gmp-impl.h", line 851: Error: "{" expected instead of ")".<br>"../gmp-impl.h", line 851: Error: Unexpected ")" -- Check for matching parenthesis.<br>"../gmp-impl.h", line 851: Error: Operand expected instead of ")".<br>
"../gmp-impl.h", line 1018: Error: Badly formed expression.<br>"../gmp-impl.h", line 1018: Warning: Attribute name expected instead of const..<br>"../gmp-impl.h", line 1018: Warning: attribute is unsupported and will be skipped..<br>
"../gmp-impl.h", line 1018: Error: ")" expected instead of "const".<br>"../gmp-impl.h", line 1018: Error: Identifier expected instead of ")".<br>"../gmp-impl.h", line 1032: Warning: Attribute name expected instead of const..<br>
"../gmp-impl.h", line 1032: Warning: attribute is unsupported and will be skipped..<br>"../gmp-impl.h", line 1032: Error: ")" expected instead of "const".<br>"../gmp-impl.h", line 1032: Error: The function "__gmpn_fft_next_size(long, int) const" cannot be declared const.<br>
"../gmp-impl.h", line 1032: Error: "," expected instead of ")".<br>"../gmp-impl.h", line 1556: Warning: attribute noreturn is unsupported and will be skipped..<br>"../gmp-impl.h", line 2157: Warning: Attribute name expected instead of const..<br>
"../gmp-impl.h", line 2157: Warning: attribute is unsupported and will be skipped..<br>"../gmp-impl.h", line 2157: Error: ")" expected instead of "const".<br>"../gmp-impl.h", line 2157: Error: The function "__gmpn_invert_limb(unsigned long) const" cannot be declared const.<br>
"../gmp-impl.h", line 2157: Error: "," expected instead of ")".<br>"../gmp-impl.h", line 2810: Warning: attribute mode is unsupported and will be skipped..<br>"../gmp-impl.h", line 2811: Warning: attribute mode is unsupported and will be skipped..<br>
"../gmp-impl.h", line 2812: Warning: attribute mode is unsupported and will be skipped..<br>"../gmp-impl.h", line 2813: Warning: attribute mode is unsupported and will be skipped..<br>"../gmp-impl.h", line 2814: Warning: attribute mode is unsupported and will be skipped..<br>
"../gmp-impl.h", line 2971: Warning: attribute noreturn is unsupported and will be skipped..<br>"../gmp-impl.h", line 2972: Warning: attribute noreturn is unsupported and will be skipped..<br>"../gmp-impl.h", line 2973: Warning: attribute noreturn is unsupported and will be skipped..<br>
"../gmp-impl.h", line 2974: Warning: attribute noreturn is unsupported and will be skipped..<br>"../gmp-impl.h", line 3641: Error: "__gmpn_jacobi_base(unsigned long, unsigned long, int)" is expected to return a value.<br>
"isfuns.cc", line 105: Error: "}" expected instead of "end of file".<br>16 Error(s) and 19 Warning(s) detected.<br></></div>
<div> </div>
<div> </div>