[Insight-users] CMakeLists.txt
Luis Ibanez
luis.ibanez@kitware.com
Wed, 11 Sep 2002 18:28:25 -0400
Hi George,
The compilation problem seems to be unrelated to CMake.
The error message that you posted seems to be related
to the inclusion of the <fstream> header file.
Please make sure that the line
#include <fstream>
is the first of the include lines on all your .cxx files.
Visual C++ has some difficulties with the ordering of
the headers and mixes up the old and new fstream classes.
Please let us know if you encounter further problems,
Thanks,
Luis
================================================================
When I tried to build the generated ctccad.dsw file I got the next error
messages:
--------------------Configuration: ctccad - Win32 Debug--------------------
Compiling...
pgm_reader.cpp
triDOpening.cxx
Generating Code...
Linking...
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: void __thiscall
std::basic_ifstream<char,struct std::char_traits<char> >::`vbase
destructor'(void)"
(??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined
in triDOpening.obj
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: void __thiscall
std::basic_ifstream<char,struct std::char_traits<char> >::close(void)"
(?close@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ) already
defined in triDOpening.obj
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: void __thiscall
std::basic_ifstream<char,struct std::char_traits<char> >::open(char const
*,int)" (?open@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXPBDH@Z)
already defined in triDOpening.ob
j
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall
std::basic_ifstream<char,struct std::char_traits<char>
>::basic_ifstream<char,struct std::char_traits<char> >(void)"
(??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@XZ) already de
fined in triDOpening.obj
Debug/ctccad.exe : fatal error LNK1169: one or more multiply defined symbols
found
Error executing link.exe.