![]() |
Blitz Support : |
From: Julian C. Cummings (cummings_at_[hidden])
Date: 2004-11-22 22:27:53
Hi Paul,
You've done the right thing as far as modifying the configure script to look
for a compiler-specific header sun/bzconfig.h. The compile error you got
below seems to indicate that something is wrong with the declaration of the
std::iterator_traits<T> template. This should be in the compiler's
<iterator> header. You might try preprocessing the globals.cpp file just to
see if the declaration of iterator_traits is being included. I don't think
I have access to this compiler, so I may not be able to help you much more
beyond this. It's possible that special compiler options are needed with
Sun's CC to get it to behave in an ANSI standard way. I will be happy to
patch blitz with support for this compiler once this issue is resolved.
Regards, Julian C.
Dr. Julian C. Cummings
Staff Scientist, CACR/Caltech
(626) 395-2543
cummings_at_[hidden]
> -----Original Message-----
> From: blitz-support-bounces_at_[hidden]
> [mailto:blitz-support-bounces_at_[hidden]] On Behalf Of Paul Floyd
> Sent: Sunday, November 21, 2004 2:29 PM
> To: blitz-support_at_[hidden]
> Subject: [Blitz-support] Blitz 0.8 & Sun Studio 9
>
>
> Hi list
>
> Has anyone managed to get Blitz 0.8 to compile with Sun Studio 9?
>
> I see that it's not listed as supported. It gets a "yes" for most of
> configure's tests, but on its own, it plumped for
> 'sgi/bzconfig.h' I set COMPILER_SPECIFIC_HEADER to
> sun/bzconfig.h, and edited
> blitz/bzconfig.h and added
>
> #elif defined(__SUNPRO_CC)
> /* Sun CC compiler */
> #include "sun/bzconfig.h"
>
> make fails fairly quickly with
>
> Making all in lib
> source='../src/globals.cpp' object='globals.lo' libtool=yes \
> depfile='.deps/globals.Plo' tmpdepfile='.deps/globals.TPlo' \
> depmode=none /bin/bash ../config/depcomp \
> /bin/bash ../libtool --mode=compile CC -DHAVE_CONFIG_H -I.
> -I.. -I..
> -g -c -o globals.lo `test -f '../src/globals.cpp' || echo
> './'`../src/globals.cpp
> CC -DHAVE_CONFIG_H -I. -I.. -I.. -g -c ../src/globals.cpp
> -o globals.o "../blitz/array/iter.h", line 248: Error: No
> primary specialization for
> partial specialization iterator_traits.
> "../blitz/array/iter.h", line 250: Error: Too few arguments
> for template
> std::iterator_traits.
> 2 Error(s) detected.
>
> Any ideas?
>
> A+
> Paul
> _______________________________________________
> Blitz-support mailing list
> Blitz-support_at_[hidden]
> http://www.oonumerics.org/mailman/listinfo.cgi/blitz-support
>