From hanssen@caesar.de Mon Nov 5 15:32:11 2001 From: hanssen@caesar.de (=?iso-8859-1?Q?Nils_Han=DFen?=) Date: Mon, 5 Nov 2001 16:32:11 +0100 Subject: [Insight-users] Compiling ITK with MIPSPro (CC) compiler under IRIX 6.5 Message-ID: <002201c1660f$0a289960$3f73b8d4@caesar.de> This is a multi-part message in MIME format. ------=_NextPart_000_0023_01C16617.6BED0160 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit 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 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 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 ------=_NextPart_000_0023_01C16617.6BED0160 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi=20 all,
 
i want = to compile=20 ITK with the MIPSPro compiler (version 7.3.1.2m) but have some problems = with a=20 missing include file (i dont know if there will be more problems with = other=20 files...).
 
However, CC tries to=20 include the <cstring> header file which seems to be gcc-specific, = since it=20 cannot be found in the include-directories of CC.
 
Does = anyone has=20 successfully compiled ITK with CC or has an idea how in can get or = create a=20 working <cstring> file for CC ?
 
Thank = you very much=20 in advance !
 
Regards,
Nils

----------------------------------=20
Nils Han=DFen
Surgical Simulation and Navigation =
research center c a e s a r =
Friedensplatz 16
53111 Bonn
fon:=20 +49-228-9656-247
fax:=20 +49-228-9656-111
http://www.caesar.de/ssn

 
------=_NextPart_000_0023_01C16617.6BED0160-- From ibanez@cs.unc.edu Mon Nov 5 23:48:33 2001 From: ibanez@cs.unc.edu (Luis Ibanez) Date: Mon, 05 Nov 2001 18:48:33 -0500 Subject: [Insight-users] Compiling ITK with MIPSPro (CC) compiler under IRIX 6.5 References: <002201c1660f$0a289960$3f73b8d4@caesar.de> Message-ID: <3BE72551.C661F36@cs.unc.edu> Hi Nils, You can replace by which is the C-Like equivalent. Could you please signal which file was including 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 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 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@cs.unc.edu Chapel Hill, NC 27599-7060 http://www.cs.unc.edu/~ibanez From hanssen@caesar.de Tue Nov 6 09:43:15 2001 From: hanssen@caesar.de (=?iso-8859-1?Q?Nils_Han=DFen?=) Date: Tue, 6 Nov 2001 10:43:15 +0100 Subject: AW: [Insight-users] Compiling ITK with MIPSPro (CC) compiler under IRIX 6.5 In-Reply-To: <3BE72551.C661F36@cs.unc.edu> Message-ID: <000001c166a7$75dd3f10$3f73b8d4@caesar.de> Hi Luis, thank you very much for your help ! The problematic file (where is included) is ./Code/Numerics/vxl/vcl/iso/vcl_cstring.h. When i replace with , 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@public.kitware.com > [mailto:insight-users-admin@public.kitware.com]Im Auftrag von Luis > Ibanez > Gesendet: Dienstag, 6. November 2001 00:49 > An: Nils Hanßen > Cc: insight-users@public.kitware.com > Betreff: Re: [Insight-users] Compiling ITK with MIPSPro (CC) compiler > under IRIX 6.5 > > > Hi Nils, > > You can replace by which > is the C-Like equivalent. > > Could you please signal which file was including > 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 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 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@cs.unc.edu > Chapel Hill, NC 27599-7060 > http://www.cs.unc.edu/~ibanez > _______________________________________________ > Insight-users mailing list > Insight-users@public.kitware.com > http://public.kitware.com/mailman/listinfo/insight-users > From ibanez@choroid.cs.unc.edu Tue Nov 6 12:52:40 2001 From: ibanez@choroid.cs.unc.edu (Luis Ibanez) Date: Tue, 6 Nov 2001 07:52:40 -0500 (EST) Subject: AW: [Insight-users] Compiling ITK with MIPSPro (CC) compiler under IRIX 6.5 In-Reply-To: <000001c166a7$75dd3f10$3f73b8d4@caesar.de> Message-ID: Nils, You may need to add the "-LANG:std" option to your compiler's command line. However you shouldn't have to do this by hand... Are you using CMake to configure and build ITK ? That's the easiest way to get things in order. Buiding CMake itself takes an additional step but that will save you a lot of time of struggling with makefiles. If you are already using CMake, you may want to verify that "-LANG:std" is among the options in CXX_FLAGS on the main CMakeList.txt file located in the "Insight" root directory. Please let us know if that helps. BTW: What version of ITK are you using ? is that one of the tarballs or are you downloading it from the CVS repository ? Thanks Luis ------------ On Tue, 6 Nov 2001, Nils Hanßen wrote: > Hi Luis, > > thank you very much for your help ! > > The problematic file (where is included) is > ./Code/Numerics/vxl/vcl/iso/vcl_cstring.h. > When i replace with , 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@public.kitware.com > > [mailto:insight-users-admin@public.kitware.com]Im Auftrag von Luis > > Ibanez > > Gesendet: Dienstag, 6. November 2001 00:49 > > An: Nils Hanßen > > Cc: insight-users@public.kitware.com > > Betreff: Re: [Insight-users] Compiling ITK with MIPSPro (CC) compiler > > under IRIX 6.5 > > > > > > Hi Nils, > > > > You can replace by which > > is the C-Like equivalent. > > > > Could you please signal which file was including > > 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 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 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@cs.unc.edu > > Chapel Hill, NC 27599-7060 > > http://www.cs.unc.edu/~ibanez > > _______________________________________________ > > Insight-users mailing list > > Insight-users@public.kitware.com > > http://public.kitware.com/mailman/listinfo/insight-users > > > > _______________________________________________ > Insight-users mailing list > Insight-users@public.kitware.com > http://public.kitware.com/mailman/listinfo/insight-users > -- 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@cs.unc.edu Chapel Hill, NC 27599-7060 http://www.cs.unc.edu/~ibanez From hanssen@caesar.de Tue Nov 6 14:18:25 2001 From: hanssen@caesar.de (=?iso-8859-1?Q?Nils_Han=DFen?=) Date: Tue, 6 Nov 2001 15:18:25 +0100 Subject: AW: AW: [Insight-users] Compiling ITK with MIPSPro (CC) compiler under IRIX 6.5 In-Reply-To: Message-ID: <000101c166cd$e6ce1980$3f73b8d4@caesar.de> Yes, i use CMake right from the beginning and it works fine (after some problems with the environment variables $CC, $CXX and so on...). Actually, i added "-LANG:std" to the command line, but another error occured (i wrote this in the previos mail). There was an error in /home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_traits.h, Line = 30 -snippet(begin)----------------- The expression must have integral or enum type. static const T zero VCL_STATIC_CONST_INIT_FLOAT(0.0); -snippet(end)------------------- First, i used the version from the tarballs. Now i am using the 2001-10-18 version, because i checked the dashboard and this version reported no errors for CC. Should i switch to a newer version ? Which one is supposed to be the best for CC right now ? Thanks Nils > Nils, > > You may need to add the "-LANG:std" option > to your compiler's command line. > > However you shouldn't have to do this by > hand... > > Are you using CMake to configure and > build ITK ? > > That's the easiest way to get things in order. > Buiding CMake itself takes an additional step > but that will save you a lot of time of struggling > with makefiles. > > If you are already using CMake, you may want > to verify that "-LANG:std" is among the options > in CXX_FLAGS on the main CMakeList.txt > file located in the "Insight" root directory. > > Please let us know if that helps. > > > BTW: What version of ITK are you using ? > is that one of the tarballs or are you > downloading it from the CVS repository ? > > > > Thanks > > > > Luis > > > > > ------------ > > On Tue, 6 Nov 2001, Nils Hanßen wrote: > > > Hi Luis, > > > > thank you very much for your help ! > > > > The problematic file (where is included) is > > ./Code/Numerics/vxl/vcl/iso/vcl_cstring.h. > > When i replace with , 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_trai > ts.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_trai > ts.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_trai > ts.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_trai > ts.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_trai > ts.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_trai > ts.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_trai > ts.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_trai > ts.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@public.kitware.com > > > [mailto:insight-users-admin@public.kitware.com]Im Auftrag von Luis > > > Ibanez > > > Gesendet: Dienstag, 6. November 2001 00:49 > > > An: Nils Hanßen > > > Cc: insight-users@public.kitware.com > > > Betreff: Re: [Insight-users] Compiling ITK with MIPSPro > (CC) compiler > > > under IRIX 6.5 > > > > > > > > > Hi Nils, > > > > > > You can replace by which > > > is the C-Like equivalent. > > > > > > Could you please signal which file was including > > > 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 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 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@cs.unc.edu > > > Chapel Hill, NC 27599-7060 > > > http://www.cs.unc.edu/~ibanez > > > _______________________________________________ > > > Insight-users mailing list > > > Insight-users@public.kitware.com > > > http://public.kitware.com/mailman/listinfo/insight-users > > > > > > > _______________________________________________ > > Insight-users mailing list > > Insight-users@public.kitware.com > > http://public.kitware.com/mailman/listinfo/insight-users > > > > -- > 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@cs.unc.edu > Chapel Hill, NC 27599-7060 > http://www.cs.unc.edu/~ibanez > > > _______________________________________________ > Insight-users mailing list > Insight-users@public.kitware.com > http://public.kitware.com/mailman/listinfo/insight-users > From bill.hoffman@kitware.com Tue Nov 6 13:31:06 2001 From: bill.hoffman@kitware.com (Bill Hoffman) Date: Tue, 06 Nov 2001 09:31:06 -0400 Subject: AW: AW: [Insight-users] Compiling ITK with MIPSPro (CC) compiler under IRIX 6.5 In-Reply-To: <000101c166cd$e6ce1980$3f73b8d4@caesar.de> References: Message-ID: <5.0.2.1.0.20011106092906.08088250@pop.nycap.rr.com> OK, I know what is wrong. You need to do this : (export CXXFLAGS=-LANG:std; cmake ../Insight) You have to set CXXFLAGS before you run cmake. The numerics code configures itself based on the capabilities of the compiler, so you have to specify the -LANG:std before configure is run. You should not edit the Makefiles directly. -Bill At 03:18 PM 11/6/2001 +0100, Nils Hanßen wrote: >Yes, i use CMake right from the beginning and it works fine (after some >problems with the environment variables $CC, $CXX and so on...). >Actually, i added "-LANG:std" to the command line, but another error occured >(i wrote this in the previos mail). There was an error in >/home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_traits.h, Line = >30 > >-snippet(begin)----------------- > > The expression must have integral or enum type. > > static const T zero VCL_STATIC_CONST_INIT_FLOAT(0.0); >-snippet(end)------------------- > >First, i used the version from the tarballs. Now i am using the 2001-10-18 >version, because i checked the dashboard and this version reported no errors >for CC. Should i switch to a newer version ? Which one is supposed to be the >best for CC right now ? > >Thanks >Nils > > > >> Nils, >> >> You may need to add the "-LANG:std" option >> to your compiler's command line. >> >> However you shouldn't have to do this by >> hand... >> >> Are you using CMake to configure and >> build ITK ? >> >> That's the easiest way to get things in order. >> Buiding CMake itself takes an additional step >> but that will save you a lot of time of struggling >> with makefiles. >> >> If you are already using CMake, you may want >> to verify that "-LANG:std" is among the options >> in CXX_FLAGS on the main CMakeList.txt >> file located in the "Insight" root directory. >> >> Please let us know if that helps. >> >> >> BTW: What version of ITK are you using ? >> is that one of the tarballs or are you >> downloading it from the CVS repository ? >> >> >> >> Thanks >> >> >> >> Luis >> >> >> >> >> ------------ >> >> On Tue, 6 Nov 2001, Nils Hanßen wrote: >> >> > Hi Luis, >> > >> > thank you very much for your help ! >> > >> > The problematic file (where is included) is >> > ./Code/Numerics/vxl/vcl/iso/vcl_cstring.h. >> > When i replace with , 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_trai >> ts.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_trai >> ts.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_trai >> ts.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_trai >> ts.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_trai >> ts.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_trai >> ts.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_trai >> ts.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_trai >> ts.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@public.kitware.com >> > > [mailto:insight-users-admin@public.kitware.com]Im Auftrag von Luis >> > > Ibanez >> > > Gesendet: Dienstag, 6. November 2001 00:49 >> > > An: Nils Hanßen >> > > Cc: insight-users@public.kitware.com >> > > Betreff: Re: [Insight-users] Compiling ITK with MIPSPro >> (CC) compiler >> > > under IRIX 6.5 >> > > >> > > >> > > Hi Nils, >> > > >> > > You can replace by which >> > > is the C-Like equivalent. >> > > >> > > Could you please signal which file was including >> > > 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 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 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@cs.unc.edu >> > > Chapel Hill, NC 27599-7060 >> > > http://www.cs.unc.edu/~ibanez >> > > _______________________________________________ >> > > Insight-users mailing list >> > > Insight-users@public.kitware.com >> > > http://public.kitware.com/mailman/listinfo/insight-users >> > > >> > >> > _______________________________________________ >> > Insight-users mailing list >> > Insight-users@public.kitware.com >> > http://public.kitware.com/mailman/listinfo/insight-users >> > >> >> -- >> 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@cs.unc.edu >> Chapel Hill, NC 27599-7060 >> http://www.cs.unc.edu/~ibanez >> >> >> _______________________________________________ >> Insight-users mailing list >> Insight-users@public.kitware.com >> http://public.kitware.com/mailman/listinfo/insight-users >> > >_______________________________________________ >Insight-users mailing list >Insight-users@public.kitware.com >http://public.kitware.com/mailman/listinfo/insight-users From hanssen@caesar.de Tue Nov 6 15:13:15 2001 From: hanssen@caesar.de (=?iso-8859-1?Q?Nils_Han=DFen?=) Date: Tue, 6 Nov 2001 16:13:15 +0100 Subject: AW: AW: AW: [Insight-users] Compiling ITK with MIPSPro (CC) compiler under IRIX 6.5 In-Reply-To: <5.0.2.1.0.20011106092906.08088250@pop.nycap.rr.com> Message-ID: <000201c166d5$8f492fd0$3f73b8d4@caesar.de> Hello Bill, unfortunately, it doesn't work either ! I just tried it and i get the same error as before: --- /home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_trai ts.h, Line = 30 The expression must have integral or enum type. static const T zero VCL_STATIC_CONST_INIT_FLOAT(0.0); --- Any more ideas ? Thanks very much ! Nils > OK, I know what is wrong. > > You need to do this : > > (export CXXFLAGS=-LANG:std; cmake ../Insight) > > You have to set CXXFLAGS before you run cmake. The numerics > code configures itself > based on the capabilities of the compiler, so you have to > specify the -LANG:std > before configure is run. > > You should not edit the Makefiles directly. > > -Bill > > > At 03:18 PM 11/6/2001 +0100, Nils Hanßen wrote: > >Yes, i use CMake right from the beginning and it works fine > (after some > >problems with the environment variables $CC, $CXX and so on...). > >Actually, i added "-LANG:std" to the command line, but > another error occured > >(i wrote this in the previos mail). There was an error in > >/home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_tra > its.h, Line = > >30 > > > >-snippet(begin)----------------- > > > > The expression must have integral or enum type. > > > > static const T zero VCL_STATIC_CONST_INIT_FLOAT(0.0); > >-snippet(end)------------------- > > > >First, i used the version from the tarballs. Now i am using > the 2001-10-18 > >version, because i checked the dashboard and this version > reported no errors > >for CC. Should i switch to a newer version ? Which one is > supposed to be the > >best for CC right now ? > > > >Thanks > >Nils > > > > > > > >> Nils, > >> > >> You may need to add the "-LANG:std" option > >> to your compiler's command line. > >> > >> However you shouldn't have to do this by > >> hand... > >> > >> Are you using CMake to configure and > >> build ITK ? > >> > >> That's the easiest way to get things in order. > >> Buiding CMake itself takes an additional step > >> but that will save you a lot of time of struggling > >> with makefiles. > >> > >> If you are already using CMake, you may want > >> to verify that "-LANG:std" is among the options > >> in CXX_FLAGS on the main CMakeList.txt > >> file located in the "Insight" root directory. > >> > >> Please let us know if that helps. > >> > >> > >> BTW: What version of ITK are you using ? > >> is that one of the tarballs or are you > >> downloading it from the CVS repository ? > >> > >> > >> > >> Thanks > >> > >> > >> > >> Luis > >> > >> > >> > >> > >> ------------ > >> > >> On Tue, 6 Nov 2001, Nils Hanßen wrote: > >> > >> > Hi Luis, > >> > > >> > thank you very much for your help ! > >> > > >> > The problematic file (where is included) is > >> > ./Code/Numerics/vxl/vcl/iso/vcl_cstring.h. > >> > When i replace with , 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_trai > >> ts.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_trai > >> ts.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_trai > >> ts.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_trai > >> ts.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_trai > >> ts.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_trai > >> ts.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_trai > >> ts.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_trai > >> ts.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@public.kitware.com > >> > > [mailto:insight-users-admin@public.kitware.com]Im > Auftrag von Luis > >> > > Ibanez > >> > > Gesendet: Dienstag, 6. November 2001 00:49 > >> > > An: Nils Hanßen > >> > > Cc: insight-users@public.kitware.com > >> > > Betreff: Re: [Insight-users] Compiling ITK with MIPSPro > >> (CC) compiler > >> > > under IRIX 6.5 > >> > > > >> > > > >> > > Hi Nils, > >> > > > >> > > You can replace by which > >> > > is the C-Like equivalent. > >> > > > >> > > Could you please signal which file was including > >> > > 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 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 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@cs.unc.edu > >> > > Chapel Hill, NC 27599-7060 > >> > > http://www.cs.unc.edu/~ibanez > >> > > _______________________________________________ > >> > > Insight-users mailing list > >> > > Insight-users@public.kitware.com > >> > > http://public.kitware.com/mailman/listinfo/insight-users > >> > > > >> > > >> > _______________________________________________ > >> > Insight-users mailing list > >> > Insight-users@public.kitware.com > >> > http://public.kitware.com/mailman/listinfo/insight-users > >> > > >> > >> -- > >> 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@cs.unc.edu > >> Chapel Hill, NC 27599-7060 > >> http://www.cs.unc.edu/~ibanez > >> > >> > >> _______________________________________________ > >> Insight-users mailing list > >> Insight-users@public.kitware.com > >> http://public.kitware.com/mailman/listinfo/insight-users > >> > > > >_______________________________________________ > >Insight-users mailing list > >Insight-users@public.kitware.com > >http://public.kitware.com/mailman/listinfo/insight-users > > _______________________________________________ > Insight-users mailing list > Insight-users@public.kitware.com > http://public.kitware.com/mailman/listinfo/insight-users > From bill.hoffman@kitware.com Tue Nov 6 14:30:35 2001 From: bill.hoffman@kitware.com (Bill Hoffman) Date: Tue, 06 Nov 2001 10:30:35 -0400 Subject: AW: AW: AW: [Insight-users] Compiling ITK with MIPSPro (CC) compiler under IRIX 6.5 In-Reply-To: <000201c166d5$8f492fd0$3f73b8d4@caesar.de> References: <5.0.2.1.0.20011106092906.08088250@pop.nycap.rr.com> Message-ID: <5.0.2.1.0.20011106102139.080a0580@pop.nycap.rr.com> I am fairly certain that this will work. We build that each night with no problems. It must be that some file is not being re-built. Can you try from a clean directory? mkdir InsightBuild setenv CXXFLAGS -LANG:std cmake ../Insight At 04:13 PM 11/6/2001 +0100, Nils Hanßen wrote: >Hello Bill, > >unfortunately, it doesn't work either ! > >I just tried it and i get the same error as before: > >--- >/home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_trai >ts.h, Line = 30 > The expression must have integral or enum type. > > static const T zero VCL_STATIC_CONST_INIT_FLOAT(0.0); >--- > >Any more ideas ? > >Thanks very much ! > >Nils > > > >> OK, I know what is wrong. >> >> You need to do this : >> >> (export CXXFLAGS=-LANG:std; cmake ../Insight) >> >> You have to set CXXFLAGS before you run cmake. The numerics >> code configures itself >> based on the capabilities of the compiler, so you have to >> specify the -LANG:std >> before configure is run. >> >> You should not edit the Makefiles directly. >> >> -Bill >> >> >> At 03:18 PM 11/6/2001 +0100, Nils Hanßen wrote: >> >Yes, i use CMake right from the beginning and it works fine >> (after some >> >problems with the environment variables $CC, $CXX and so on...). >> >Actually, i added "-LANG:std" to the command line, but >> another error occured >> >(i wrote this in the previos mail). There was an error in >> >/home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_tra >> its.h, Line = >> >30 >> > >> >-snippet(begin)----------------- >> > >> > The expression must have integral or enum type. >> > >> > static const T zero VCL_STATIC_CONST_INIT_FLOAT(0.0); >> >-snippet(end)------------------- >> > >> >First, i used the version from the tarballs. Now i am using >> the 2001-10-18 >> >version, because i checked the dashboard and this version >> reported no errors >> >for CC. Should i switch to a newer version ? Which one is >> supposed to be the >> >best for CC right now ? >> > >> >Thanks >> >Nils >> > >> > >> > >> >> Nils, >> >> >> >> You may need to add the "-LANG:std" option >> >> to your compiler's command line. >> >> >> >> However you shouldn't have to do this by >> >> hand... >> >> >> >> Are you using CMake to configure and >> >> build ITK ? >> >> >> >> That's the easiest way to get things in order. >> >> Buiding CMake itself takes an additional step >> >> but that will save you a lot of time of struggling >> >> with makefiles. >> >> >> >> If you are already using CMake, you may want >> >> to verify that "-LANG:std" is among the options >> >> in CXX_FLAGS on the main CMakeList.txt >> >> file located in the "Insight" root directory. >> >> >> >> Please let us know if that helps. >> >> >> >> >> >> BTW: What version of ITK are you using ? >> >> is that one of the tarballs or are you >> >> downloading it from the CVS repository ? >> >> >> >> >> >> >> >> Thanks >> >> >> >> >> >> >> >> Luis >> >> >> >> >> >> >> >> >> >> ------------ >> >> >> >> On Tue, 6 Nov 2001, Nils Hanßen wrote: >> >> >> >> > Hi Luis, >> >> > >> >> > thank you very much for your help ! >> >> > >> >> > The problematic file (where is included) is >> >> > ./Code/Numerics/vxl/vcl/iso/vcl_cstring.h. >> >> > When i replace with , 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_trai >> >> ts.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_trai >> >> ts.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_trai >> >> ts.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_trai >> >> ts.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_trai >> >> ts.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_trai >> >> ts.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_trai >> >> ts.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_trai >> >> ts.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@public.kitware.com >> >> > > [mailto:insight-users-admin@public.kitware.com]Im >> Auftrag von Luis >> >> > > Ibanez >> >> > > Gesendet: Dienstag, 6. November 2001 00:49 >> >> > > An: Nils Hanßen >> >> > > Cc: insight-users@public.kitware.com >> >> > > Betreff: Re: [Insight-users] Compiling ITK with MIPSPro >> >> (CC) compiler >> >> > > under IRIX 6.5 >> >> > > >> >> > > >> >> > > Hi Nils, >> >> > > >> >> > > You can replace by which >> >> > > is the C-Like equivalent. >> >> > > >> >> > > Could you please signal which file was including >> >> > > 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 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 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@cs.unc.edu >> >> > > Chapel Hill, NC 27599-7060 >> >> > > http://www.cs.unc.edu/~ibanez >> >> > > _______________________________________________ >> >> > > Insight-users mailing list >> >> > > Insight-users@public.kitware.com >> >> > > http://public.kitware.com/mailman/listinfo/insight-users >> >> > > >> >> > >> >> > _______________________________________________ >> >> > Insight-users mailing list >> >> > Insight-users@public.kitware.com >> >> > http://public.kitware.com/mailman/listinfo/insight-users >> >> > >> >> >> >> -- >> >> 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@cs.unc.edu >> >> Chapel Hill, NC 27599-7060 >> >> http://www.cs.unc.edu/~ibanez >> >> >> >> >> >> _______________________________________________ >> >> Insight-users mailing list >> >> Insight-users@public.kitware.com >> >> http://public.kitware.com/mailman/listinfo/insight-users >> >> >> > >> >_______________________________________________ >> >Insight-users mailing list >> >Insight-users@public.kitware.com >> >http://public.kitware.com/mailman/listinfo/insight-users >> >> _______________________________________________ >> Insight-users mailing list >> Insight-users@public.kitware.com >> http://public.kitware.com/mailman/listinfo/insight-users >> From hanssen@caesar.de Wed Nov 7 14:55:29 2001 From: hanssen@caesar.de (=?iso-8859-1?Q?Nils_Han=DFen?=) Date: Wed, 7 Nov 2001 15:55:29 +0100 Subject: AW: AW: AW: [Insight-users] Compiling ITK with MIPSPro (CC) compiler under IRIX 6.5 In-Reply-To: <5.0.2.1.0.20011106102139.080a0580@pop.nycap.rr.com> Message-ID: <001801c1679c$3e6f3880$3f73b8d4@caesar.de> Success ! I started from a clean directory and used the version from the tarballs. I got a lot of warnings, but who cares but it works. There was no problem with , too ! Thanks all for your help ! Regards, Nils > I am fairly certain that this will work. We build that each > night with no problems. > It must be that some file is not being re-built. > Can you try from a clean directory? > > > mkdir InsightBuild > setenv CXXFLAGS -LANG:std > cmake ../Insight > > > > At 04:13 PM 11/6/2001 +0100, Nils Hanßen wrote: > >Hello Bill, > > > >unfortunately, it doesn't work either ! > > > >I just tried it and i get the same error as before: > > > >--- > >/home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_trai > >ts.h, Line = 30 > > The expression must have integral or enum type. > > > > static const T zero VCL_STATIC_CONST_INIT_FLOAT(0.0); > >--- > > > >Any more ideas ? > > > >Thanks very much ! > > > >Nils > > > > > > > >> OK, I know what is wrong. > >> > >> You need to do this : > >> > >> (export CXXFLAGS=-LANG:std; cmake ../Insight) > >> > >> You have to set CXXFLAGS before you run cmake. The numerics > >> code configures itself > >> based on the capabilities of the compiler, so you have to > >> specify the -LANG:std > >> before configure is run. > >> > >> You should not edit the Makefiles directly. > >> > >> -Bill > >> > >> > >> At 03:18 PM 11/6/2001 +0100, Nils Hanßen wrote: > >> >Yes, i use CMake right from the beginning and it works fine > >> (after some > >> >problems with the environment variables $CC, $CXX and so on...). > >> >Actually, i added "-LANG:std" to the command line, but > >> another error occured > >> >(i wrote this in the previos mail). There was an error in > >> >/home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_tra > >> its.h, Line = > >> >30 > >> > > >> >-snippet(begin)----------------- > >> > > >> > The expression must have integral or enum type. > >> > > >> > static const T zero VCL_STATIC_CONST_INIT_FLOAT(0.0); > >> >-snippet(end)------------------- > >> > > >> >First, i used the version from the tarballs. Now i am using > >> the 2001-10-18 > >> >version, because i checked the dashboard and this version > >> reported no errors > >> >for CC. Should i switch to a newer version ? Which one is > >> supposed to be the > >> >best for CC right now ? > >> > > >> >Thanks > >> >Nils > >> > > >> > > >> > > >> >> Nils, > >> >> > >> >> You may need to add the "-LANG:std" option > >> >> to your compiler's command line. > >> >> > >> >> However you shouldn't have to do this by > >> >> hand... > >> >> > >> >> Are you using CMake to configure and > >> >> build ITK ? > >> >> > >> >> That's the easiest way to get things in order. > >> >> Buiding CMake itself takes an additional step > >> >> but that will save you a lot of time of struggling > >> >> with makefiles. > >> >> > >> >> If you are already using CMake, you may want > >> >> to verify that "-LANG:std" is among the options > >> >> in CXX_FLAGS on the main CMakeList.txt > >> >> file located in the "Insight" root directory. > >> >> > >> >> Please let us know if that helps. > >> >> > >> >> > >> >> BTW: What version of ITK are you using ? > >> >> is that one of the tarballs or are you > >> >> downloading it from the CVS repository ? > >> >> > >> >> > >> >> > >> >> Thanks > >> >> > >> >> > >> >> > >> >> Luis > >> >> > >> >> > >> >> > >> >> > >> >> ------------ > >> >> > >> >> On Tue, 6 Nov 2001, Nils Hanßen wrote: > >> >> > >> >> > Hi Luis, > >> >> > > >> >> > thank you very much for your help ! > >> >> > > >> >> > The problematic file (where is included) is > >> >> > ./Code/Numerics/vxl/vcl/iso/vcl_cstring.h. > >> >> > When i replace with , 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_trai > >> >> ts.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_trai > >> >> ts.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_trai > >> >> ts.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_trai > >> >> ts.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_trai > >> >> ts.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_trai > >> >> ts.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_trai > >> >> ts.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_trai > >> >> ts.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@public.kitware.com > >> >> > > [mailto:insight-users-admin@public.kitware.com]Im > >> Auftrag von Luis > >> >> > > Ibanez > >> >> > > Gesendet: Dienstag, 6. November 2001 00:49 > >> >> > > An: Nils Hanßen > >> >> > > Cc: insight-users@public.kitware.com > >> >> > > Betreff: Re: [Insight-users] Compiling ITK with MIPSPro > >> >> (CC) compiler > >> >> > > under IRIX 6.5 > >> >> > > > >> >> > > > >> >> > > Hi Nils, > >> >> > > > >> >> > > You can replace by which > >> >> > > is the C-Like equivalent. > >> >> > > > >> >> > > Could you please signal which file was including > >> >> > > 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 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 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@cs.unc.edu > >> >> > > Chapel Hill, NC 27599-7060 > >> >> > > http://www.cs.unc.edu/~ibanez > >> >> > > _______________________________________________ > >> >> > > Insight-users mailing list > >> >> > > Insight-users@public.kitware.com > >> >> > > http://public.kitware.com/mailman/listinfo/insight-users > >> >> > > > >> >> > > >> >> > _______________________________________________ > >> >> > Insight-users mailing list > >> >> > Insight-users@public.kitware.com > >> >> > http://public.kitware.com/mailman/listinfo/insight-users > >> >> > > >> >> > >> >> -- > >> >> 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@cs.unc.edu > >> >> Chapel Hill, NC 27599-7060 > >> >> http://www.cs.unc.edu/~ibanez > >> >> > >> >> > >> >> _______________________________________________ > >> >> Insight-users mailing list > >> >> Insight-users@public.kitware.com > >> >> http://public.kitware.com/mailman/listinfo/insight-users > >> >> > >> > > >> >_______________________________________________ > >> >Insight-users mailing list > >> >Insight-users@public.kitware.com > >> >http://public.kitware.com/mailman/listinfo/insight-users > >> > >> _______________________________________________ > >> Insight-users mailing list > >> Insight-users@public.kitware.com > >> http://public.kitware.com/mailman/listinfo/insight-users > >> > > _______________________________________________ > Insight-users mailing list > Insight-users@public.kitware.com > http://public.kitware.com/mailman/listinfo/insight-users > From jbiddiscombe@skippingmouse.co.uk Wed Nov 7 17:29:44 2001 From: jbiddiscombe@skippingmouse.co.uk (John Biddiscombe) Date: Wed, 07 Nov 2001 17:29:44 +0000 Subject: [Insight-users] Compiler errors under Borland... Message-ID: <5.0.0.25.0.20011107172555.00b2f3e8@mail.btinternet.com> Greetings, I've just tried compiling ITK with Borland and got a number of errors. Mostly math errors, looks like unsupported innan isinf type functions. Before I spend days trying to track down fixes for everything, does anyone already know what to do? Thanks John B (Didn't check archive, sorry) d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx: Error E2048 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 27: Unknown preprocess or directive: 'warning' Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 33: Parameter 'x' is never used in function finite(double) Error E2451 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 65: Undefined symbol ' _huge_dble' Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 116: Call to undefined function 'isnan' in function vnl_math_isinf(float) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 118: Call to undefined function 'isnan' in function vnl_math_isinf(double) Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 118: Parameter 'x' i s never used in function vnl_math_isinf(double) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 120: Call to undefined function 'isnan' in function vnl_math_isinf(long double) Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 120: Parameter 'x' i s never used in function vnl_math_isinf(long double) *** 5 errors in Compile *** d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_filewrite.cxx: d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_header.cxx: d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print.cxx: d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print2.cxx: d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_format.cxx: d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx: Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 18: Cal l to undefined function 'sprintf' in function vnl_matlab_print_scalar(int,char * ,vnl_matlab_print_format) Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 19: P arameter 'v' is never used in function vnl_matlab_print_scalar(int,char *,vnl_ma tlab_print_format) Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 19: P arameter 'buf' is never used in function vnl_matlab_print_scalar(int,char *,vnl_ matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 30: Cal l to undefined function 'sprintf' in function vnl_matlab_print_scalar(float,char *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 32: Cal l to undefined function 'sprintf' in function vnl_matlab_print_scalar(float,char *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 36: Cal l to undefined function 'sprintf' in function vnl_matlab_print_scalar(float,char *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 38: Cal l to undefined function 'sprintf' in function vnl_matlab_print_scalar(float,char *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 41: Cal l to undefined function 'sprintf' in function vnl_matlab_print_scalar(float,char *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 44: Cal l to undefined function 'sprintf' in function vnl_matlab_print_scalar(float,char *,vnl_matlab_print_format) Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 48: P arameter 'buf' is never used in function vnl_matlab_print_scalar(float,char *,vn l_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 59: Cal l to undefined function 'sprintf' in function vnl_matlab_print_scalar(double,cha r *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 61: Cal l to undefined function 'sprintf' in function vnl_matlab_print_scalar(double,cha r *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 65: Cal l to undefined function 'sprintf' in function vnl_matlab_print_scalar(double,cha r *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 67: Cal l to undefined function 'sprintf' in function vnl_matlab_print_scalar(double,cha r *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 70: Cal l to undefined function 'sprintf' in function vnl_matlab_print_scalar(double,cha r *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 73: Cal l to undefined function 'sprintf' in function vnl_matlab_print_scalar(double,cha r *,vnl_matlab_print_format) Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 77: P arameter 'buf' is never used in function vnl_matlab_print_scalar(double,char *,v nl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 128: Ca ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp lex,char *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 129: Ca ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp lex,char *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 132: Ca ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp lex,char *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 133: Ca ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp lex,char *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 140: Ca ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp lex,char *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 141: Ca ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp lex,char *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 148: Ca ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp lex,char *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 149: Ca ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp lex,char *,vnl_matlab_print_format) Warning W8004 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 150: 'sign' is assigned a value that is never used in function vnl_matlab_print_scala r(std::complex,char *,vnl_matlab_print_format) Warning W8004 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 151: 'conv' is assigned a value that is never used in function vnl_matlab_print_scala r(std::complex,char *,vnl_matlab_print_format) Warning W8004 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 151: 'precision' is assigned a value that is never used in function vnl_matlab_print_ scalar(std::complex,char *,vnl_matlab_print_format) Warning W8004 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 151: 'width' is assigned a value that is never used in function vnl_matlab_print_scal ar(std::complex,char *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 195: Ca ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp lex,char *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 196: Ca ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp lex,char *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 199: Ca ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp lex,char *,vnl_matlab_print_format) Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 200: Ca ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp lex,char *,vnl_matlab_print_format) Error E2228 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 200: To o many error or warning messages in function vnl_matlab_print_scalar(std::comple x,char *,vnl_matlab_print_format) *** 26 errors in Compile *** d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_read.cxx: d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_write.cxx: d:/Insight/Code/Numerics/vxl/vnl/vnl_matops.cxx: d:/Insight/Code/Numerics/vxl/vnl/vnl_nonlinear_minimizer.cxx: d:/Insight/Code/Numerics/vxl/vnl/vnl_numeric_limits.cxx: d:/Insight/Code/Numerics/vxl/vnl/vnl_numeric_traits.cxx: d:/Insight/Code/Numerics/vxl/vnl/vnl_real_npolynomial.cxx: d:/Insight/Code/Numerics/vxl/vnl/vnl_real_polynomial.cxx: d:/Insight/Code/Numerics/vxl/vnl/vnl_rotation_matrix.cxx: d:/Insight/Code/Numerics/vxl/vnl/vnl_sample.cxx: Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_sample.cxx 34: Call to undefine d function 'time' in function vnl_sample_reseed() *** 1 errors in Compile *** From bill.hoffman@kitware.com Wed Nov 7 16:45:52 2001 From: bill.hoffman@kitware.com (Bill Hoffman) Date: Wed, 07 Nov 2001 12:45:52 -0400 Subject: [Insight-users] Compiler errors under Borland... In-Reply-To: <5.0.0.25.0.20011107172555.00b2f3e8@mail.btinternet.com> Message-ID: <5.0.2.1.0.20011107123456.0810ec18@pop.nycap.rr.com> Right now the only supported compilers are: Visual Studio 6 SGI 7.3.X gcc 2.9.5.x gcc 3.x cygwin gcc I gave a quick look at the Borland compiler, and saw the same errors. Until ITK development settles down, we do not have plans to expand the list of compilers. However, if you want to try and compile with Borland, I can give some hints on what to try. The problem is that the Numerics code uses an autoconf configure script on unix machines to determine features that the c++ compiler supports. For windows, this has been hand configured for Visual Studio 6. Feature wise, the compilers seem to be different enough to break the code. Here are the location of the files that are configured: Insight/Code/Numerics/vxl/vcl vcl_config_headers.h.in vcl_config_compiler.h.in vcl_config_manual.h.in Insight/Code/Numerics/vxl vxl_config.h.in The cmakelist file does this: IF(NOT UNIX) IF(WIN32) CONFIGURE_FILE( ${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl/config.win32-vc60/vxl_config.h ${ITK_BINARY_DIR}/Code/Numerics/vxl/vxl_config.h COPYONLY) CONFIGURE_FILE( ${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl/config.win32-vc60/vcl_config_compiler.h ${ITK_BINARY_DIR}/Code/Numerics/vxl/vcl/vcl_config_compiler.h COPYONLY) CONFIGURE_FILE( ${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl/config.win32-vc60/vcl_config_headers.h ${ITK_BINARY_DIR}/Code/Numerics/vxl/vcl/vcl_config_headers.h COPYONLY) CONFIGURE_FILE( ${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl/config.win32-vc60/vcl_config_manual.h ${ITK_BINARY_DIR}/Code/Numerics/vxl/vcl/vcl_config_manual.h COPYONLY) ENDIF(WIN32) ENDIF(NOT UNIX) Creating borland versions of those .h files would be the way to go. I tried running configure with cygwin and using the borland compiler as CXX, but configure is hard coded to expect .o files and not .obj files, so it does not work that well. At 05:29 PM 11/7/2001 +0000, John Biddiscombe wrote: >Greetings, I've just tried compiling ITK with Borland and got a number of errors. Mostly math errors, looks like unsupported innan isinf type functions. Before I spend days trying to track down fixes for everything, does anyone already know what to do? > >Thanks > >John B (Didn't check archive, sorry) > >d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx: >Error E2048 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 27: Unknown preprocess >or directive: 'warning' >Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 33: Parameter 'x' is > never used in function finite(double) >Error E2451 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 65: Undefined symbol ' >_huge_dble' >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 116: Call to undefined > function 'isnan' in function vnl_math_isinf(float) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 118: Call to undefined > function 'isnan' in function vnl_math_isinf(double) >Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 118: Parameter 'x' i >s never used in function vnl_math_isinf(double) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 120: Call to undefined > function 'isnan' in function vnl_math_isinf(long double) >Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 120: Parameter 'x' i >s never used in function vnl_math_isinf(long double) >*** 5 errors in Compile *** >d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_filewrite.cxx: >d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_header.cxx: >d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print.cxx: >d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print2.cxx: >d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_format.cxx: >d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx: >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 18: Cal >l to undefined function 'sprintf' in function vnl_matlab_print_scalar(int,char * >,vnl_matlab_print_format) >Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 19: P >arameter 'v' is never used in function vnl_matlab_print_scalar(int,char *,vnl_ma >tlab_print_format) >Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 19: P >arameter 'buf' is never used in function vnl_matlab_print_scalar(int,char *,vnl_ >matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 30: Cal >l to undefined function 'sprintf' in function vnl_matlab_print_scalar(float,char > *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 32: Cal >l to undefined function 'sprintf' in function vnl_matlab_print_scalar(float,char > *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 36: Cal >l to undefined function 'sprintf' in function vnl_matlab_print_scalar(float,char > *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 38: Cal >l to undefined function 'sprintf' in function vnl_matlab_print_scalar(float,char > *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 41: Cal >l to undefined function 'sprintf' in function vnl_matlab_print_scalar(float,char > *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 44: Cal >l to undefined function 'sprintf' in function vnl_matlab_print_scalar(float,char > *,vnl_matlab_print_format) >Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 48: P >arameter 'buf' is never used in function vnl_matlab_print_scalar(float,char *,vn >l_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 59: Cal >l to undefined function 'sprintf' in function vnl_matlab_print_scalar(double,cha >r *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 61: Cal >l to undefined function 'sprintf' in function vnl_matlab_print_scalar(double,cha >r *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 65: Cal >l to undefined function 'sprintf' in function vnl_matlab_print_scalar(double,cha >r *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 67: Cal >l to undefined function 'sprintf' in function vnl_matlab_print_scalar(double,cha >r *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 70: Cal >l to undefined function 'sprintf' in function vnl_matlab_print_scalar(double,cha >r *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 73: Cal >l to undefined function 'sprintf' in function vnl_matlab_print_scalar(double,cha >r *,vnl_matlab_print_format) >Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 77: P >arameter 'buf' is never used in function vnl_matlab_print_scalar(double,char *,v >nl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 128: Ca >ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp >lex,char *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 129: Ca >ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp >lex,char *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 132: Ca >ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp >lex,char *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 133: Ca >ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp >lex,char *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 140: Ca >ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp >lex,char *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 141: Ca >ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp >lex,char *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 148: Ca >ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp >lex,char *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 149: Ca >ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp >lex,char *,vnl_matlab_print_format) >Warning W8004 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 150: >'sign' is assigned a value that is never used in function vnl_matlab_print_scala >r(std::complex,char *,vnl_matlab_print_format) >Warning W8004 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 151: >'conv' is assigned a value that is never used in function vnl_matlab_print_scala >r(std::complex,char *,vnl_matlab_print_format) >Warning W8004 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 151: >'precision' is assigned a value that is never used in function vnl_matlab_print_ >scalar(std::complex,char *,vnl_matlab_print_format) >Warning W8004 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 151: >'width' is assigned a value that is never used in function vnl_matlab_print_scal >ar(std::complex,char *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 195: Ca >ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp >lex,char *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 196: Ca >ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp >lex,char *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 199: Ca >ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp >lex,char *,vnl_matlab_print_format) >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 200: Ca >ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp >lex,char *,vnl_matlab_print_format) >Error E2228 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 200: To >o many error or warning messages in function vnl_matlab_print_scalar(std::comple >x,char *,vnl_matlab_print_format) >*** 26 errors in Compile *** >d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_read.cxx: >d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_write.cxx: >d:/Insight/Code/Numerics/vxl/vnl/vnl_matops.cxx: >d:/Insight/Code/Numerics/vxl/vnl/vnl_nonlinear_minimizer.cxx: >d:/Insight/Code/Numerics/vxl/vnl/vnl_numeric_limits.cxx: >d:/Insight/Code/Numerics/vxl/vnl/vnl_numeric_traits.cxx: >d:/Insight/Code/Numerics/vxl/vnl/vnl_real_npolynomial.cxx: >d:/Insight/Code/Numerics/vxl/vnl/vnl_real_polynomial.cxx: >d:/Insight/Code/Numerics/vxl/vnl/vnl_rotation_matrix.cxx: >d:/Insight/Code/Numerics/vxl/vnl/vnl_sample.cxx: >Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_sample.cxx 34: Call to undefine >d function 'time' in function vnl_sample_reseed() >*** 1 errors in Compile *** > >_______________________________________________ >Insight-users mailing list >Insight-users@public.kitware.com >http://public.kitware.com/mailman/listinfo/insight-users From piloo@unc.edu Thu Nov 15 16:30:49 2001 From: piloo@unc.edu (Jean-Philippe Guyon) Date: Thu, 15 Nov 2001 11:30:49 -0500 Subject: [Insight-users] piloo@unc.edu Message-ID: <008701c16df2$e5f24e60$75691398@rad.unc.edu> Hi, it looks like there is no way to compile a code using both itk and mfc, and unfortunately, I need both. So I would just like to know if anyone could help. That would be great if you had a tip :)) thank you, Jean-Philippe Guyon. From bill.hoffman@kitware.com Thu Nov 15 17:02:45 2001 From: bill.hoffman@kitware.com (Bill Hoffman) Date: Thu, 15 Nov 2001 12:02:45 -0500 Subject: [Insight-users] piloo@unc.edu In-Reply-To: <008701c16df2$e5f24e60$75691398@rad.unc.edu> Message-ID: <5.0.2.1.0.20011115120233.0376d630@pop.nycap.rr.com> I think this has been done. You can create MFC apps in cmake like this: # add stuff to use MFC in this executable ADD_DEFINITIONS(-D_AFXDLL) SET(CMAKE_MFC_FLAG 6) ADD_EXECUTABLE(CMakeSetup WIN32 SRCS) One trick is that your should include itk files first. Perhaps if you described the trouble you were having in some more detail, we could give a better answer. -Bill At 11:30 AM 11/15/2001 -0500, Jean-Philippe Guyon wrote: >Hi, > >it looks like there is no way to compile a code using both itk and mfc, and >unfortunately, I need both. So I would just like to know if anyone could >help. >That would be great if you had a tip :)) > >thank you, > >Jean-Philippe Guyon. > >_______________________________________________ >Insight-users mailing list >Insight-users@public.kitware.com >http://public.kitware.com/mailman/listinfo/insight-users From hanssen@caesar.de Mon Nov 19 09:15:58 2001 From: hanssen@caesar.de (=?iso-8859-1?Q?Nils_Han=DFen?=) Date: Mon, 19 Nov 2001 10:15:58 +0100 Subject: [Insight-users] itkVTKImageExport Message-ID: <000801c170da$cd62a4e0$3f73b8d4@caesar.de> This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C170E3.2F270CE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hello, i would like to connect the itk pipeline with the vtk pipeline. I found the corresponding classes itk::itkVTKImageExport and vtk::VTKImageImport in the documentations. However, i couldn't find the source of itk::itkVTKImageExport. (I am using the latest tar-version of itk...). Thanks. Nils ------=_NextPart_000_0009_01C170E3.2F270CE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
i = would like to=20 connect the itk pipeline with the vtk pipeline. I found the = corresponding=20 classes itk::itkVTKImageExport and vtk::VTKImageImport in the = documentations.=20
However, i couldn't=20 find the source of itk::itkVTKImageExport. (I am using the latest = tar-version of=20 itk...).
 
Thanks.
 
Nils
 
 
------=_NextPart_000_0009_01C170E3.2F270CE0-- From bill.hoffman@kitware.com Mon Nov 19 13:24:42 2001 From: bill.hoffman@kitware.com (William A. Hoffman) Date: Mon, 19 Nov 2001 08:24:42 -0500 Subject: [Insight-users] itkVTKImageExport In-Reply-To: <000801c170da$cd62a4e0$3f73b8d4@caesar.de> Message-ID: <5.0.2.1.0.20011119082158.038fce08@pop.nycap.rr.com> That file is only in the cvs version of ITK. To get the cvs ITK look here: cvs -d :pserver:anonymous@public.kitware.com/cvsroot/Insight login password: insight cvs -d :pserver:anonymous@public.kitware.com/cvsroot/Insight co Insight However, please look at the dashboard before updating itk: http://www.itk.org/HTML/Testing.htm You will have the same errors as the ones on the dashboard. -Bill At 10:15 AM 11/19/2001 +0100, Nils Han=DFen wrote: >Hello, > >i would like to connect the itk pipeline with the vtk pipeline. I found=20 >the corresponding classes itk::itkVTKImageExport and vtk::VTKImageImport=20 >in the documentations. >However, i couldn't find the source of itk::itkVTKImageExport. (I am using= =20 >the latest tar-version of itk...). > >Thanks. > >Nils > > From dorian@barak-online.net Tue Nov 20 09:10:33 2001 From: dorian@barak-online.net (Dorian Averbuh) Date: Tue, 20 Nov 2001 11:10:33 +0200 Subject: [Insight-users] Compiler errors under other compiler Message-ID: <001a01c171a3$35ee4460$3e0a0a0a@tempcomp> This is a multi-part message in MIME format. ------=_NextPart_000_0017_01C171B3.F944B9C0 Content-Type: text/plain; charset="windows-1255" Content-Transfer-Encoding: quoted-printable Did anybody try to compile with Microsoft compilers under Win32 systems. I know that it has no official support, but I'm interested to know what is the status of this issue. Thanks, Dorian. ------=_NextPart_000_0017_01C171B3.F944B9C0 Content-Type: text/html; charset="windows-1255" Content-Transfer-Encoding: quoted-printable
Did anybody try to compile with = Microsoft=20 compilers
under Win32 systems. I know = that it has=20 no official support,
but I'm interested to know = what is the=20 status of this issue.
Thanks,
Dorian.
------=_NextPart_000_0017_01C171B3.F944B9C0-- From bill.hoffman@kitware.com Tue Nov 20 13:00:27 2001 From: bill.hoffman@kitware.com (William A. Hoffman) Date: Tue, 20 Nov 2001 08:00:27 -0500 Subject: [Insight-users] Compiler errors under other compiler In-Reply-To: <001a01c171a3$35ee4460$3e0a0a0a@tempcomp> Message-ID: <5.0.2.1.0.20011120075942.03946de8@pop.nycap.rr.com> Visual studio 6.0 is a supported compiler. Can you be more specific: What version of ITK, and visual studio, and windows? -Bill At 11:10 AM 11/20/2001 +0200, Dorian Averbuh wrote: >Did anybody try to compile with Microsoft compilers >under Win32 systems. I know that it has no official support, >but I'm interested to know what is the status of this issue. >Thanks, >Dorian. From ibanez@choroid.cs.unc.edu Tue Nov 20 13:23:06 2001 From: ibanez@choroid.cs.unc.edu (Luis Ibanez) Date: Tue, 20 Nov 2001 08:23:06 -0500 (EST) Subject: [Insight-users] Compiler errors under other compiler In-Reply-To: <001a01c171a3$35ee4460$3e0a0a0a@tempcomp> Message-ID: Hi Dorian, ITK compiles with Visual C++ under Win32, It also builds with the Intel compiler. You may want to check the status of the builds in the dashboard: http://www.itk.org/HTML/Testing.htm Just click on the image icon, it will show you the current status of the toolkit for all the platforms used. ITK is strongly commited to support Windows platforms. Have you find particular problems installing ITK on Windows ? We'll be glad to give you a have if you need it. Luis ------------------------------------ On Tue, 20 Nov 2001, Dorian Averbuh wrote: > Did anybody try to compile with Microsoft compilers > under Win32 systems. I know that it has no official support, > but I'm interested to know what is the status of this issue. > Thanks, > Dorian. > -- 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@cs.unc.edu Chapel Hill, NC 27599-7060 http://www.cs.unc.edu/~ibanez From zhao_c_g@263.net Wed Nov 21 08:21:28 2001 From: zhao_c_g@263.net (zhao) Date: Wed, 21 Nov 2001 16:21:28 +0800 Subject: [Insight-users] A problem about FLTK_BASE_LIBRARY option in CMake. Message-ID: <20020806080931.AF4701DE22F24@smtp.263.net> Hi All, I encountered many compiling errors with the example of "RawImageReaderViewer". Maybe some options I set in CMake are not correct. Not knowing what FLTK_BASE_LIBRARY means, I just selected ...\fltk-1.0.11\lib\fltkdlld.exp. Is it correct? Thanks for any reply. Regards, Zhao From zhao_c_g@263.net Wed Nov 21 13:41:57 2001 From: zhao_c_g@263.net (zhao) Date: Wed, 21 Nov 2001 21:41:57 +0800 Subject: [Insight-users] A problem about FLTK_BASE_LIBRARY option in CMake. Message-ID: <20020806133127.EED1E1D344F54@smtp.263.net> Thanks, Julien. But the compiling errors still exist. They are as follows(under= MSVC6.0): --------------------Configuration: RawImageReaderViewer - Win32= Debug-------------------- Performing Custom Build Step on "E:\Visual= Human\ITKSourceWin32Beta2\InsightBeta2\Examples\RawImageReaderVi= ewer\itkRawImageReaderViewerGUI.fl" Performing Custom Build Step on "E:\Visual= Human\ITKSourceWin32Beta2\InsightBeta2\Examples\RawImageReaderVi= ewer\CMakeLists.txt" Compiling... RawImageReaderViewer.cxx E:\Visual Human\fltk-1.0.11\fltk-1.0.11\FL\math.h(52) : error= C2065: 'floor' : undeclared identifier E:\Visual= Human\ITKSourceWin32Beta2\InsightBeta2\Code\Numerics\vxl\vnl/vnl= _math.h(149) : error C2039: 'sqrt' : is not a member of '`global= namespace'' E:\Visual= Human\ITKSourceWin32Beta2\InsightBeta2\Code\Numerics\vxl\vnl/vnl= _math.h(149) : error C2065: 'sqrt' : undeclared identifier E:\Visual= Human\ITKSourceWin32Beta2\InsightBeta2\Code\Numerics\vxl\vnl/vnl= _math.h(153) : error C2039: 'exp' : is not a member of '`global= namespace'' ..... ..... ..... ..... 'floor' is a function decleared in system file math.h, which is= included by ...\FL\math.h. So, I think the first error about= 'floor' are not reasonable. What's wrong? The other two errors is about two routines, i.e., "sqrt", "exp".= But these two functions really are not in the file of= "vnl_math.h" Who has ever encountered the similar problem? Thanks in advance= for your help. >Hi Zhao, > >FLTK_BASE_LIBRARY means the main library of FLTK, >(i.e. fltk.lib under windows and fltk.a under linux) > >You must select, in your case, >...\fltk-1.0.11\lib\Release\fltk.lib > >Hope this helps > >Julien > >----- Original Message ----- >From: "zhao" >To: "itk" >Sent: Wednesday, November 21, 2001 4:21 AM >Subject: [Insight-users] A problem about FLTK_BASE_LIBRARY= option in CMake. > > >> Hi All, >> >> I encountered many compiling errors with the example of >"RawImageReaderViewer". Maybe some options I set in CMake are= not correct. >Not knowing what FLTK_BASE_LIBRARY means, I just selected >...\fltk-1.0.11\lib\fltkdlld.exp. Is it correct? Thanks for any= reply. >> >> Regards, >> Zhao >> >> >> _______________________________________________ >> Insight-users mailing list >> Insight-users@public.kitware.com >> http://public.kitware.com/mailman/listinfo/insight-users =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =09=09=09 =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=D6=C2 =C0=F1=A3=A1 =09=09=09=09 =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1zhao =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1zhao_c_g =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A12001-11-21 From zhao_c_g@263.net Wed Nov 21 15:39:07 2001 From: zhao_c_g@263.net (zhao) Date: Wed, 21 Nov 2001 23:39:7 +0800 Subject: [Insight-users] A problem about FLTK_BASE_LIBRARY option in CMake. Message-ID: <20020806152708.2563C1DE22F9C@smtp.263.net> Many thanks, Julien. You are right, the problem are solved:) But things are always not ready to satisfy you completely.= Another problem, I think it's the final one, is: ___________________________________________________ Linking... fltk.lib(Fl_Group.obj) : error LNK2005: "public: void __thiscall= Fl_Group::end(void)" (?end@Fl_Group@@QAEXXZ) already defined in= FltkImageViewer.lib(fltkSphereFunctionControlGUI.obj) LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of= other libs; use /NODEFAULTLIB:library E:\Visual= Human\ITKSourceWin32Beta2\InsightBeta2\Debug/RawImageReaderViewe= r.exe : fatal error LNK1169: one or more multiply defined symbols= found Error executing link.exe. RawImageReaderViewer.exe - 2 error(s), 5 warning(s) ____________________________________________________ =09 thanks again. zhao >Hi Zhao, > >This looks familiar... >Did you specify the fltk include directory in CMake as >...\fltk-1.0.11\ ? >(I guess you set ...\fltk-1.0.11\FL\) > >If you include fltk-x.x.xx\FL\ , the compiler will include >Fl\math.h as the default math.h (and not the correct one), >I think that's the problem. > >Let me know if it works > >Julien > >----- Original Message ----- >From: "zhao" >To: "itk" >Sent: Wednesday, November 21, 2001 9:41 AM >Subject: Re: Re: [Insight-users] A problem about= FLTK_BASE_LIBRARY option in >CMake. > > >Thanks, Julien. > >But the compiling errors still exist. They are as follows(under= MSVC6.0): > >--------------------Configuration: RawImageReaderViewer - Win32 >Debug-------------------- > >Performing Custom Build Step on "E:\Visual >Human\ITKSourceWin32Beta2\InsightBeta2\Examples\RawImageReaderVi= ewer\itkRawI >mageReaderViewerGUI.fl" >Performing Custom Build Step on "E:\Visual >Human\ITKSourceWin32Beta2\InsightBeta2\Examples\RawImageReaderVi= ewer\CMakeLi >sts.txt" > >Compiling... >RawImageReaderViewer.cxx >E:\Visual Human\fltk-1.0.11\fltk-1.0.11\FL\math.h(52) : error= C2065: 'floor' >: undeclared identifier >E:\Visual >Human\ITKSourceWin32Beta2\InsightBeta2\Code\Numerics\vxl\vnl/vnl= _math.h(149) >: error C2039: 'sqrt' : is not a member of '`global namespace'' >E:\Visual >Human\ITKSourceWin32Beta2\InsightBeta2\Code\Numerics\vxl\vnl/vnl= _math.h(149) >: error C2065: 'sqrt' : undeclared identifier >E:\Visual >Human\ITKSourceWin32Beta2\InsightBeta2\Code\Numerics\vxl\vnl/vnl= _math.h(153) >: error C2039: 'exp' : is not a member of '`global namespace'' >..... >..... >..... >..... > >'floor' is a function decleared in system file math.h, which is= included by >...\FL\math.h. So, I think the first error about 'floor' are not= reasonable. >What's wrong? > >The other two errors is about two routines, i.e., "sqrt", "exp".= But these >two functions really are not in the file of "vnl_math.h" > >Who has ever encountered the similar problem? Thanks in advance= for your >help. > >>Hi Zhao, >> >>FLTK_BASE_LIBRARY means the main library of FLTK, >>(i.e. fltk.lib under windows and fltk.a under linux) >> >>You must select, in your case, >>...\fltk-1.0.11\lib\Release\fltk.lib >> >>Hope this helps >> >>Julien >> >>----- Original Message ----- >>From: "zhao" >>To: "itk" >>Sent: Wednesday, November 21, 2001 4:21 AM >>Subject: [Insight-users] A problem about FLTK_BASE_LIBRARY= option in CMake. >> >> >>> Hi All, >>> >>> I encountered many compiling errors with the example of >>"RawImageReaderViewer". Maybe some options I set in CMake are= not correct. >>Not knowing what FLTK_BASE_LIBRARY means, I just selected >>...\fltk-1.0.11\lib\fltkdlld.exp. Is it correct? Thanks for any= reply. >>> >>> Regards, >>> Zhao >>> >>> >>> _______________________________________________ >>> Insight-users mailing list >>> Insight-users@public.kitware.com >>> http://public.kitware.com/mailman/listinfo/insight-users > >=3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D > > >=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=D6=C2 >=C0=F1=A3=A1 > > >=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1zhao >=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1zhao_c_g >=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A12001-11-21 > > > >_______________________________________________ >Insight-users mailing list >Insight-users@public.kitware.com >http://public.kitware.com/mailman/listinfo/insight-users =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =09=09=09 =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=D6=C2 =C0=F1=A3=A1 =09=09=09=09 =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1zhao =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1zhao_c_g =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A12001-11-21 From zhao_c_g@263.net Thu Nov 22 04:12:47 2001 From: zhao_c_g@263.net (zhao) Date: Thu, 22 Nov 2001 12:12:47 +0800 Subject: [Insight-users] A problem about FLTK_BASE_LIBRARY option in CMake. Message-ID: <20020807040049.D285F1D074C7A@smtp.263.net> Hi Julien, =09I've tried. Every thing is OK now:) Thanks for your help. Regards, Zhao =09 =3D=3D=3D=3D=3D=3D=3D 2002-08-06 13:28:00 =C4=FA=D4=DA=C0=B4=D0=C5=D6=D0=D0=B4=B5=C0=A3=BA=3D=3D=3D=3D=3D=3D=3D >Hi Zhao, > >Could you try to clean/recompile ? >This looks like a mix of compilations. > >Julien > >----- Original Message ----- >From: "zhao" >To: "Julien Jomier" ; "itk" > >Sent: Wednesday, November 21, 2001 11:00 AM >Subject: Re: Re: Re: [Insight-users] A problem about= FLTK_BASE_LIBRARY >option in CMake. > > >Many thanks, Julien. You are right, the problem are solved:) > >But things are always not ready to satisfy you completely.= Another problem, >I think it's the final one, is: > >___________________________________________________ >Linking... >fltk.lib(Fl_Group.obj) : error LNK2005: "public: void= __thiscall >Fl_Group::end(void)" (?end@Fl_Group@@QAEXXZ) already defined in >FltkImageViewer.lib(fltkSphereFunctionControlGUI.obj) >LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use= of other >libs; use /NODEFAULTLIB:library >E:\Visual >Human\ITKSourceWin32Beta2\InsightBeta2\Debug/RawImageReaderViewe= r.exe : >fatal error LNK1169: one or more multiply defined symbols found >Error executing link.exe. >RawImageReaderViewer.exe - 2 error(s), 5 warning(s) >____________________________________________________ > >thanks again. >zhao > > >>Hi Zhao, >> >>This looks familiar... >>Did you specify the fltk include directory in CMake as >>...\fltk-1.0.11\ ? >>(I guess you set ...\fltk-1.0.11\FL\) >> >>If you include fltk-x.x.xx\FL\ , the compiler will include >>Fl\math.h as the default math.h (and not the correct one), >>I think that's the problem. >> >>Let me know if it works >> >>Julien >> >>----- Original Message ----- >>From: "zhao" >>To: "itk" >>Sent: Wednesday, November 21, 2001 9:41 AM >>Subject: Re: Re: [Insight-users] A problem about= FLTK_BASE_LIBRARY option >in >>CMake. >> >> >>Thanks, Julien. >> >>But the compiling errors still exist. They are as follows(under= MSVC6.0): >> >>--------------------Configuration: RawImageReaderViewer -= Win32 >>Debug-------------------- >> >>Performing Custom Build Step on "E:\Visual >>Human\ITKSourceWin32Beta2\InsightBeta2\Examples\RawImageReaderV= iewer\itkRaw >I >>mageReaderViewerGUI.fl" >>Performing Custom Build Step on "E:\Visual >>Human\ITKSourceWin32Beta2\InsightBeta2\Examples\RawImageReaderV= iewer\CMakeL >i >>sts.txt" >> >>Compiling... >>RawImageReaderViewer.cxx >>E:\Visual Human\fltk-1.0.11\fltk-1.0.11\FL\math.h(52) : error= C2065: >'floor' >>: undeclared identifier >>E:\Visual >>Human\ITKSourceWin32Beta2\InsightBeta2\Code\Numerics\vxl\vnl/vn= l_math.h(149 >) >>: error C2039: 'sqrt' : is not a member of '`global= namespace'' >>E:\Visual >>Human\ITKSourceWin32Beta2\InsightBeta2\Code\Numerics\vxl\vnl/vn= l_math.h(149 >) >>: error C2065: 'sqrt' : undeclared identifier >>E:\Visual >>Human\ITKSourceWin32Beta2\InsightBeta2\Code\Numerics\vxl\vnl/vn= l_math.h(153 >) >>: error C2039: 'exp' : is not a member of '`global namespace'' >>..... >>..... >>..... >>..... >> >>'floor' is a function decleared in system file math.h, which is= included by >>...\FL\math.h. So, I think the first error about 'floor' are= not >reasonable. >>What's wrong? >> >>The other two errors is about two routines, i.e., "sqrt",= "exp". But these >>two functions really are not in the file of "vnl_math.h" >> >>Who has ever encountered the similar problem? Thanks in advance= for your >>help. >> >>>Hi Zhao, >>> >>>FLTK_BASE_LIBRARY means the main library of FLTK, >>>(i.e. fltk.lib under windows and fltk.a under linux) >>> >>>You must select, in your case, >>>...\fltk-1.0.11\lib\Release\fltk.lib >>> >>>Hope this helps >>> >>>Julien >>> >>>----- Original Message ----- >>>From: "zhao" >>>To: "itk" >>>Sent: Wednesday, November 21, 2001 4:21 AM >>>Subject: [Insight-users] A problem about FLTK_BASE_LIBRARY= option in >CMake. >>> >>> >>>> Hi All, >>>> >>>> I encountered many compiling errors with the example of >>>"RawImageReaderViewer". Maybe some options I set in CMake are= not correct. >>>Not knowing what FLTK_BASE_LIBRARY means, I just selected >>>...\fltk-1.0.11\lib\fltkdlld.exp. Is it correct? Thanks for= any reply. >>>> >>>> Regards, >>>> Zhao >>>> >>>> >>>> _______________________________________________ >>>> Insight-users mailing list >>>> Insight-users@public.kitware.com >>>> http://public.kitware.com/mailman/listinfo/insight-users >> >>=3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D >> >> >>=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=D6=C2 >>=C0=F1=A3=A1 >> >> >>=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1zhao >>=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1zhao_c_g >>=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A12001-11-21 >> >> >> >>_______________________________________________ >>Insight-users mailing list >>Insight-users@public.kitware.com >>http://public.kitware.com/mailman/listinfo/insight-users > >=3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D > > >=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=D6=C2 >=C0=F1=A3=A1 > > >=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1zhao >=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1zhao_c_g >=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A12001-11-21 > > > >_______________________________________________ >Insight-users mailing list >Insight-users@public.kitware.com >http://public.kitware.com/mailman/listinfo/insight-users =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =09=09=09 =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=D6=C2 =C0=F1=A3=A1 =09=09=09=09 =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1zhao =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1zhao_c_g =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A12001-11-22