[Insight-users] Building ITK on Linux
Krishnaveni Budati
kbudati at gmail.com
Fri Feb 16 11:53:33 EST 2007
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/MetaIO/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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070216/8278314a/attachment-0001.html
More information about the Insight-users
mailing list