[Insight-users] Building ITK on Linux
Atwood, Robert C
r.atwood at imperial.ac.uk
Fri Feb 16 12:59:48 EST 2007
Actually , it warns for plain 'c' but gives an error for 'c++' in 3.3.3, 3.4.6 and 4.1 versions. There was some discussion about this on the gcc list a while (years) back, someone's suggestion to make it only a warning was rejected but by the argument used, it should be better to be consistent and make the 'c' compiler return an error as well -- but I guess that hasn't happened! (Pedantic is not pedantic enough in 'c' ...)
Probaby not a huge priority. Also the idea that the man page should reflect this has apparently not been incorporated.
___________________
-Wlong-long
Warn if long long type is used. This is default. ...
___________________
There is no combination of options that I or the original gcc list poster could find, that causes long-long to be a warning for c++ , it is either accepted silently or it's an error.
> -----Original Message-----
> From: insight-users-bounces+r.atwood=imperial.ac.uk at itk.org
> [mailto:insight-users-bounces+r.atwood=imperial.ac.uk at itk.org]
> On Behalf Of Karthik Krishnan
> Sent: 16 February 2007 17:08
> To: Krishnaveni Budati
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] Building ITK on Linux
>
> Please remove "-pedantic" . I remember gcc 3.4 used to give
> warnings exactly like the ones you have with -pedantic :
> " ISO C++ does not support 'long long' "
>
> I presume gcc4.1 throws an error for the same. (typical of
> gcc... warn users with a few versions before erroring them out :) )
>
> You might also want to remove the flag -Wlong-long (In any
> case, -Wlong-long and -Wno-long-long are taken into account
> only if -pedantic flag is specified).
>
> Please let us know if this works for you.
> -karthik
>
>
>
> On 2/16/07, Krishnaveni Budati <kbudati at gmail.com> wrote:
>
> Hi Mathieu,
>
> Thank you for your email. Using echo $CXXFLAGS, the
> environment variable has the following value:
>
> -pedantic -Wall -W -Wfloat-equal -Wshadow
> -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings
> -Wmissing-prototypes -Wpacked -Wunreachable-code -Winline
> -Wlong-long -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder
> -Wold-style-cast -Woverloaded-virtual -Wsign-promo -Wsynth
>
> Version of g++:
> g++ (GCC) 4.1.0 (SUSE Linux)
> Copyright (C) 2006 Free Software Foundation, Inc.
>
> As you suspected, CXXFLAGS has -pedantic. Could you
> please tell me what could be done further.
>
> Thank you,
> Krishnaveni
>
>
>
> On 2/16/07, Mathieu Malaterre
> <mathieu.malaterre at kitware.com > wrote:
>
> Krishnaveni Budati wrote:
> > Hi,
> >
> > When I am trying to build ITK on Linux, I am
> running into errors, when
> > running make. I have attached the error file
> with this email. Could you
> > please tell me what could be a possible solution.
> >
> > I am using ITK Version - 3.x
> > and OS is Suse Linux
> >
> > Thank you,
> > Krishnaveni
> >
> >
> >
> --------------------------------------------------------------
> ----------
> >
> > cc1plus: warning: command line option
> "-Wmissing-prototypes" is valid for Ada/C/ObjC but not for C++
> >
> /home/rahul/Desktop/Insight/InsightToolkit-3.0.1/Utilities/Met
> aIO/metaTypes.h:53: error: ISO C++ does not support ‘long long’
>
>
> Hello Krishnaveni,
>
> Could you tell us what are your
> CXXFLAGS. Two way to get them either:
>
> $ echo $CXXFLAGS
> or directly in the ITK binary directory:
>
> $ cd ITK-bin
> $ grep CXX_FLAGS CMakeCache.txt
>
> Could you please post that to the list
> ? At the same time post the
> version of g++:
>
> $ g++ --version
>
> Thanks
> Mathieu
> Ps: I suspect you have something like -pedantic
> / -pedantic-errors or
> maybe -Werror
>
>
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
>
>
>
>
>
More information about the Insight-users
mailing list