I'm installing VTK, which is a library. It uses cmake. I managed to configure and generate the files needed then when I run "make" I get this error below. I thought 'easy, I'll just change the include file so that it's and not "iostream.h"' but then I looked at it and it had this code in the file where the error occurred (see below). I also tried changing the <> to "". Any ideas as to what the problem might be? I'm running this in Ubuntu. Thanks.
Terminal Window Error:
[ 27%] Building CXX object Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/Directory.cxx.o
In file included from /.../VTK-bin/Utilities/KWSys/vtksys/stl/string.hxx:29:0,
from /.../VTK-bin/Utilities/KWSys/vtksys/stl/string:49,
from /.../VTK-bin/Utilities/KWSys/vtksys/Directory.hxx:16,
from /.../VTK-src/Utilities/KWSys/vtksys/Directory.cxx:13:
/.../VTK-bin/Utilities/KWSys/vtksys/ios/iostream:26:23: fatal error: iostream.h: No such file or directory
# include <iostream.h>
^
compilation terminated.
make[2]: [Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/Directory.cxx.o] Error 1
make[1]: [Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/all] Error 2
make: [all] Error 2
Code:
#if vtksys_IOS_USE_ANSI
# include <iostream>
#else
# include <iostream.h>
#endif
These are the instructions I was following and the error occurred on the final step.
Aucun commentaire:
Enregistrer un commentaire