[mpir-devel] Re: Can a C++ expert help me here

2009-01-10 Thread Bill Hart
I have now committed the final versions of the fixes. I've checked ./configure and ./configure --enable-cxx and mak and make check for both on fulvia and sage.math. I was concerned about speed loss as a result of the facet and attribute fixes I made, so I went back and made sure these were disabl

[mpir-devel] Re: Can a C++ expert help me here

2009-01-10 Thread mabshoff
On Jan 10, 7:24 am, "Bill Hart" wrote: > I knocked the bastard off: Nice! > MPIR now builds and passes make check with --enable-cxx with the Sun > CC compiler. Technically the Sun compiler is correct to complain. > Let's hope it still compiles with GCC! Yep and all that code that uses the

[mpir-devel] Re: Can a C++ expert help me here

2009-01-10 Thread Bill Hart
I knocked the bastard off: extern "C" { struct __gmp_alloc_cstring_c { void (*free_func) (void *, size_t); }; } struct __gmp_alloc_cstring : __gmp_alloc_cstring_c { char *str; __gmp_alloc_cstring(char *s) { str = s; } ~__gmp_alloc_cstring() { mp_get_memory_functions (NULL, NULL, &

[mpir-devel] Re: Can a C++ expert help me here

2009-01-10 Thread Bill Hart
Unfortunately that doesn't seem to change the interface of freefunc. The problem seems to be that you can only change the interface of functions at file level, and freefunc is not at file level. But putting it at file level would make it unthreadsafe. Bill. 2009/1/10 user923005 : > > On Jan 9, 8

[mpir-devel] Re: Can a C++ expert help me here

2009-01-10 Thread user923005
On Jan 9, 8:47 pm, Bill Hart wrote: > I've been working on getting MPIR to compile on Sun CC with --enable- > cxx. I've fixed the attribute errors by only defining ATTRIBUTE_* when > __GNUC__ is defined. This fixes lots of build warnings actually, > though if __GNUC__ is not defined for a compile