AW: [Insight-users] Compiling ITK with MIPSPro (CC) compiler under IRIX 6.5

Nils Hanßen hanssen at caesar.de
Tue Nov 6 04:43:15 EST 2001


Hi Luis,

thank you very much for your help !

The problematic file (where <cstring> is included) is
./Code/Numerics/vxl/vcl/iso/vcl_cstring.h.
When i replace <cstring> with <string.h>, i get the following error message:

----------------------------------------------------------------------------
------
[...]
CC -g -O2  -I/home/hanssen/InsightCC/Code/Numerics/vxl -I/home/hanssen/Insig
htCC -I/home/hanssen/InsightCC/Code/Numerics -I/home/hanssen/InsightCC/Code/
Common -I/home/hanssen/InsightCC/Code/Numerics/vxl -I/home/hanssen/InsightCC
/Code/Numerics/vxl -I/home/hanssen/InsightCC/Code/Numerics/vxl/vcl -I/home/h
anssen/InsightCC/Code/Numerics/vxl/vcl -I/home/hanssen/InsightCC/Utilities/p
ng -I/home/hanssen/InsightCC/Utilities/zlib   -c
vnl/Templates/vcl_vector+vnl_double_2-.cxx -o
vnl/Templates/vcl_vector+vnl_double_2-.o
cc-1035 CC: WARNING File = /usr/include/CC/iosfwd, Line = 18
  #error directive:  This header file requires the -LANG:std option

  #error This header file requires the -LANG:std option
   ^

cc-1070 CC: ERROR File = /usr/include/CC/string, Line = 2172
  The indicated type is incomplete.

    char __f = __os.fill();
               ^

cc-1367 CC: ERROR File = /usr/include/CC/string, Line = 2175
  A pointer to an incomplete class type is not allowed.

    for (__i = 0; __i < __n; __i++) __buf->sputc(__f);
[...]                                    ^
----------------------------------------------------------------------------
------


If i add "-LANG:std" to the command line of CC, i get this error message:

----------------------------------------------------------------------------
------
[...]
CC -g -O2 -LANG:std  -I/home/hanssen/InsightCC/Code/Numerics/vxl -I/home/han
ssen/InsightCC -I/home/hanssen/InsightCC/Code/Numerics -I/home/hanssen/Insig
htCC/Code/Common -I/home/hanssen/InsightCC/Code/Numerics/vxl -I/home/hanssen
/InsightCC/Code/Numerics/vxl -I/home/hanssen/InsightCC/Code/Numerics/vxl/vcl
 -I/home/hanssen/InsightCC/Code/Numerics/vxl/vcl -I/home/hanssen/InsightCC/U
tilities/png -I/home/hanssen/InsightCC/Utilities/zlib   -c
vnl/Templates/vcl_vector+vnl_double_2-.cxx -o
vnl/Templates/vcl_vector+vnl_double_2-.o
cc-3315 CC: ERROR File =
/home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_traits.h, Line =
30
  The expression must have integral or enum type.

    static const T zero VCL_STATIC_CONST_INIT_FLOAT(0.0);
                        ^

cc-3315 CC: ERROR File =
/home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_traits.h, Line =
31
  The expression must have integral or enum type.

    static const T one VCL_STATIC_CONST_INIT_FLOAT(1.0);
                       ^

cc-1295 CC: ERROR File =
/home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_traits.h, Line =
167
  The indicated data member initializer is not allowed.

    static const float zero VCL_STATIC_CONST_INIT_FLOAT(0.0F);
                            ^

cc-1295 CC: ERROR File =
/home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_traits.h, Line =
168
  The indicated data member initializer is not allowed.

    static const float one VCL_STATIC_CONST_INIT_FLOAT(1.0F);
                           ^

cc-1295 CC: ERROR File =
/home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_traits.h, Line =
177
  The indicated data member initializer is not allowed.

    static const double zero VCL_STATIC_CONST_INIT_FLOAT(0.0);
                             ^

cc-1295 CC: ERROR File =
/home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_traits.h, Line =
178
  The indicated data member initializer is not allowed.

    static const double one VCL_STATIC_CONST_INIT_FLOAT(1.0);
                            ^

cc-1295 CC: ERROR File =
/home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_traits.h, Line =
187
  The indicated data member initializer is not allowed.

    static const long double zero VCL_STATIC_CONST_INIT_FLOAT(0.0);
                                  ^

cc-1295 CC: ERROR File =
/home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_traits.h, Line =
188
  The indicated data member initializer is not allowed.

    static const long double one VCL_STATIC_CONST_INIT_FLOAT(1.0);
                                 ^

8 errors detected in the compilation of
"vnl/Templates/vcl_vector+vnl_double_2-.cxx".
*** Error code 2 (bu21)
*** Error code 1 (bu21)
*** Error code 1 (bu21)
*** Error code 1 (bu21)

[...]
----------------------------------------------------------------------------
------

Do you think there is a problem in my configuration ?

Regards
Nils

> -----Ursprüngliche Nachricht-----
> Von: insight-users-admin at public.kitware.com
> [mailto:insight-users-admin at public.kitware.com]Im Auftrag von Luis
> Ibanez
> Gesendet: Dienstag, 6. November 2001 00:49
> An: Nils Hanßen
> Cc: insight-users at public.kitware.com
> Betreff: Re: [Insight-users] Compiling ITK with MIPSPro (CC) compiler
> under IRIX 6.5
>
>
> Hi Nils,
>
> You can replace <cstring> by <string.h> which
> is the C-Like equivalent.
>
> Could you please signal which file was including
> <cstring> so we can fix that in the repository.
> We are building ITK on SGI's so that should work
> pretty well.
>
> Please let us know if this include change works
> for you or not.
>
>
> Thanks
>
>
>
> Luis
>
> ----------------------------------
>
>
> > Nils Hanßen wrote:
> >
> > Hi all,
> >
> > i want to compile ITK with the MIPSPro compiler (version
> 7.3.1.2m) but
> > have some problems with a missing include file (i dont know if there
> > will be more problems with other files...).
> >
> > However, CC tries to include the <cstring> header file
> which seems to
> > be gcc-specific, since it cannot be found in the include-directories
> > of CC.
> >
> > Does anyone has successfully compiled ITK with CC or has an idea how
> > in can get or create a working <cstring> file for CC ?
> >
> > Thank you very much in advance !
> >
> > Regards,
> > Nils
> >
> > ----------------------------------
> > Nils Hanßen
> > Surgical Simulation and Navigation
> > research center c a e s a r
> > Friedensplatz 16
> > 53111 Bonn
> > fon: +49-228-9656-247
> > fax: +49-228-9656-111
> > http://www.caesar.de/ssn
> >
> >
>
> --
> Luis Ibanez                                      CB#:   7060
> Research Assistan Professor                      phone: (919) 843 5436
> Division of Neurosurgery                         fax:   (919) 966 6627
> University of North Carolina at Chapel Hill      email:
> ibanez at cs.unc.edu
> Chapel Hill, NC 27599-7060
> http://www.cs.unc.edu/~ibanez
> _______________________________________________
> Insight-users mailing list
> Insight-users at public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>




More information about the Insight-users mailing list