[Insight-users] Compile error in itkMacro.h in class OStringStream
Luis Ibanez
luis.ibanez at kitware.com
Wed Aug 2 07:12:49 EDT 2006
Hi Stefanie,
What you are confronting is a poor Makefile configuration.
Please use CMake in order to configure your Makefiles.
It will save you a lot of time and frustration.
Creating a CMakeLists.txt file is quite straight forward,
specially if you are already familiar with Makefiles.
The great advantage is that the same exact CMakeLists.txt
will be usable for any other platform.
Please make sure that you use a CMake that is native in
Cygwin.
You will find instructions on how to write CMakeLists.txt
file in the ITK Tutorials:
http://www.itk.org/HTML/Tutorials.htm
an in the ITK Software Guide
http://www.itk.org/ItkSoftwareGuide.pdf
Please let us know if you encounter any problems while
writing the CMakeLists.txt file for your project.
Thanks
Luis
----------------------
Stefanie Nowak wrote:
> Hello,
>
> I try to port an application using ITK 2.8.1 and VTK 5.0 from the
> Microsoft Visual Studio 6 Compiler to g++ 3.4.4 compiler using cygwin
> under Windows XP.
> The libraries compiled well, but by trying to compile the application I
> get a compiler error in itkMacro.h line 453 "error: expected class-name
> before '{' token".
> It seems that I have a problem with the different stream libraries in
> the STL and the C++ streams library. I found one hint in the ITK Wiki
> FAQ under the topic "Compile/Link errors involving C++ streams library,
> but that does not help.
> Maybe I missed to set the right flags in my Makefile?
>
> Any help is appreciated!
> Thanks, Stefanie
>
More information about the Insight-users
mailing list