[Insight-developers] valarray: no such file ?!

Bill Hoffman bill.hoffman at kitware.com
Tue Sep 5 16:40:29 EDT 2000


valarray is part of the ANSI  C++ standard.   You need to upgrade,
the compiler to gcc 2.95.2, or we need to stop using it.
However, valarray is found in the SGI, Microsoft and gcc 2.95.

On our older redhat 5.3 machine, I just built the compiler 2.95 in
my home directory and changed my path.

-Bill



At 03:48 PM 9/5/00 -0400, Paul Hughett wrote:


>I've just come back to the Insight project after taking about a month
>off to write a proposal and have encountered a new bug:
>
>When I try to compile under Red Hat 6.2 Linux, I get the following
>error message:
>
>c++ -g -O2 -I. -I/home/hughett/work/Insight/Code/Insight3DParty/vxl
>  -I/home/hughett/work/Insight -I/home/hughett/work/Insight/Code/Common
>  -I/home/hughett/work/Insight/Code/Insight3DParty/vxl -c
>  itkBasicArchitectureTest.cxx -o itkBasicArchitectureTest.o
>In file included from itkBasicArchitectureTest.cxx:17:
>/home/hughett/work/Insight/Code/Common/itkImage.h:22: valarray: No
>  such file or directory
>
>The line at itkImage.h:22 is
>
>    #include <valarray>
>
>I suspect that this is a configuration problem of some sort (valarray
>should come with the c++ compiler or library) but don't really know
>c++ well enough yet to be enthusiastic about tracking this one down.
>Is there anyone who has already encountered and solved this problem
>and is willing to enlighten me?
>
>My installed compiler version is:
>egcs-g77-1.1.2-30
>egcs-objc-1.1.2-30
>egcs-1.1.2-30
>egcs-c++-1.1.2-30
>libstdc++-2.9.0-30
>
>Thanks.
>
>Paul Hughett
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers at public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-developers 





More information about the Insight-developers mailing list