Thanks a loot. That worked :).<br><br><div><span class="gmail_quote">On 2/16/07, <b class="gmail_sendername">Atwood, Robert C</b> <<a href="mailto:r.atwood@imperial.ac.uk">r.atwood@imperial.ac.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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' ...)<br><br><br> Probaby not a huge priority. Also the idea that the man page should reflect this has apparently not been incorporated.<br>___________________
<br> -Wlong-long<br> Warn if long long type is used. This is default. ...<br>___________________<br><br><br>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.<br><br><br><br><br>> -----Original Message-----<br>> From: insight-users-bounces+r.atwood=<a href="mailto:imperial.ac.uk@itk.org">imperial.ac.uk@itk.org</a><br>> [mailto:
<a href="mailto:insight-users-bounces+r.atwood=imperial.ac.uk@itk.org">insight-users-bounces+r.atwood=imperial.ac.uk@itk.org</a>]<br>> On Behalf Of Karthik Krishnan<br>> Sent: 16 February 2007 17:08<br>> To: Krishnaveni Budati
<br>> Cc: <a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>> Subject: Re: [Insight-users] Building ITK on Linux<br>><br>> Please remove "-pedantic" . I remember gcc 3.4 used to give
<br>> warnings exactly like the ones you have with -pedantic :<br>> " ISO C++ does not support 'long long' "<br>><br>> I presume gcc4.1 throws an error for the same. (typical of<br>> gcc... warn users with a few versions before erroring them out :) )
<br>><br>> You might also want to remove the flag -Wlong-long (In any<br>> case, -Wlong-long and -Wno-long-long are taken into account<br>> only if -pedantic flag is specified).<br>><br>> Please let us know if this works for you.
<br>> -karthik<br>><br>><br>><br>> On 2/16/07, Krishnaveni Budati <<a href="mailto:kbudati@gmail.com">kbudati@gmail.com</a>> wrote:<br>><br>> Hi Mathieu,<br>><br>> Thank you for your email. Using echo $CXXFLAGS, the
<br>> environment variable has the following value:<br>><br>> -pedantic -Wall -W -Wfloat-equal -Wshadow<br>> -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings<br>> -Wmissing-prototypes -Wpacked -Wunreachable-code -Winline
<br>> -Wlong-long -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder<br>> -Wold-style-cast -Woverloaded-virtual -Wsign-promo -Wsynth<br>><br>> Version of g++:<br>> g++ (GCC) 4.1.0 (SUSE Linux)<br>
> Copyright (C) 2006 Free Software Foundation, Inc.<br>><br>> As you suspected, CXXFLAGS has -pedantic. Could you<br>> please tell me what could be done further.<br>><br>> Thank you,<br>
> Krishnaveni<br>><br>><br>><br>> On 2/16/07, Mathieu Malaterre<br>> <<a href="mailto:mathieu.malaterre@kitware.com">mathieu.malaterre@kitware.com</a> > wrote:<br>><br>> Krishnaveni Budati wrote:
<br>> > Hi,<br>> ><br>>
> When I am trying to build ITK on Linux, I am<br>> running into errors, when<br>>
> running make. I have attached the error file<br>> with this email. Could you<br>>
> please tell me what could be a possible solution.<br>> ><br>> > I am using ITK Version - 3.x<br>> > and OS is Suse Linux<br>> ><br>> > Thank you,
<br>> > Krishnaveni<br>> ><br>> ><br>> ><br>> --------------------------------------------------------------<br>> ----------<br>> >
<br>>
> cc1plus: warning: command line option<br>> "-Wmissing-prototypes" is valid for Ada/C/ObjC but not for C++<br>> ><br>> /home/rahul/Desktop/Insight/InsightToolkit-3.0.1/Utilities/Met
<br>> aIO/metaTypes.h:53: error: ISO C++ does not support ‘long long’<br>><br>><br>> Hello Krishnaveni,<br>><br>>
Could you tell us what are your<br>> CXXFLAGS. Two way to get them either:<br>><br>> $ echo $CXXFLAGS<br>>
or directly in the ITK binary directory:<br>><br>> $ cd ITK-bin<br>> $ grep CXX_FLAGS CMakeCache.txt<br>><br>>
Could you please post that to the list<br>> ? At the same time post the<br>> version of g++:<br>><br>> $ g++ --version<br>><br>> Thanks<br>> Mathieu
<br>>
Ps: I suspect you have something like -pedantic<br>> / -pedantic-errors or<br>> maybe -Werror<br>><br>><br>><br>><br>> _______________________________________________<br>> Insight-users mailing list
<br>> <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>> <a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br>><br>>
<br>><br>><br>><br>><br>><br><br>_______________________________________________<br>Insight-users mailing list<br><a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br><a href="http://www.itk.org/mailman/listinfo/insight-users">
http://www.itk.org/mailman/listinfo/insight-users</a><br><br></blockquote></div><br>