kastnermario / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

iostream depedency missing for test-objects #129

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I'm running an Up-to-date Ubuntu 11.04, and get the following compilations 
error

/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/emittertests.cpp: In function ‘void 
Test::<unnamed>::RunEmitterTest(void (*)(YAML::Emitter&, std::string&), const 
std::string&, int&, int&)’:
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/emittertests.cpp:972:6: error: ‘cout’ is not a 
member of ‘std’
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/emittertests.cpp:973:6: error: ‘cout’ is not a 
member of ‘std’
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/emittertests.cpp:976:5: error: ‘cout’ is not a 
member of ‘std’
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/emittertests.cpp:977:5: error: ‘cout’ is not a 
member of ‘std’
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/emittertests.cpp:978:5: error: ‘cout’ is not a 
member of ‘std’
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/emittertests.cpp:979:5: error: ‘cout’ is not a 
member of ‘std’
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/emittertests.cpp:980:5: error: ‘cout’ is not a 
member of ‘std’
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/emittertests.cpp:982:6: error: ‘cout’ is not a 
member of ‘std’
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/emittertests.cpp: In function ‘void 
Test::<unnamed>::RunEmitterErrorTest(void (*)(YAML::Emitter&, std::string&), 
const std::string&, int&, int&)’:
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/emittertests.cpp:995:5: error: ‘cout’ is not a 
member of ‘std’
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/emittertests.cpp:997:6: error: ‘cout’ is not a 
member of ‘std’
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/emittertests.cpp:999:6: error: ‘cout’ is not a 
member of ‘std’
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/emittertests.cpp:1000:5: error: ‘cout’ is not a 
member of ‘std’
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/emittertests.cpp: In function ‘bool 
Test::RunEmitterTests()’:
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/emittertests.cpp:1094:3: error: ‘cout’ is not a 
member of ‘std’
make[3]: *** [test/CMakeFiles/run-tests.dir/emittertests.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/spectests.cpp: In function ‘void 
Test::<unnamed>::RunSpecTest(Test::TEST (*)(), const std::string&, const 
std::string&, int&, int&)’:
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/spectests.cpp:17:5: error: ‘cout’ is not a 
member of ‘std’
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/spectests.cpp:18:5: error: ‘cout’ is not a 
member of ‘std’
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/spectests.cpp: In function ‘bool 
Test::RunSpecTests()’:
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/spectests.cpp:145:3: error: ‘cout’ is not a 
member of ‘std’
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/new-api/nodetests.cpp: In function ‘void 
Test::RunNodeTest(<unnamed>::TEST (*)(), const std::string&, int&, int&)’:
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/new-api/nodetests.cpp:283:4: error: ‘cout’ is 
not a member of ‘std’
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/new-api/nodetests.cpp:285:5: error: ‘cout’ is 
not a member of ‘std’
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/new-api/nodetests.cpp: In function ‘bool 
Test::RunNodeTests()’:
/home/mriedel/MPI/Repositories/humus-sw/TeleKyb2/trunk/stacks/telekyb_deps/yaml_
wrapper/build/yaml-cpp/test/new-api/nodetests.cpp:316:3: error: ‘cout’ is 
not a member of ‘std’
make[3]: *** [test/CMakeFiles/run-tests.dir/spectests.cpp.o] Error 1
make[3]: *** [test/CMakeFiles/run-tests.dir/new-api/nodetests.cpp.o] Error 1

If I manually add <iostream> to these cpp it builds fine. On my Mac it builds 
fine even without adding
<iostream>. I'm building the new API.

What is the expected output? What do you see instead?
Cannot compile.

What version of the product are you using? On what operating system?
Lastest Check-out

Please provide any additional information below.

Original issue reported on code.google.com by m...@riedel-privat.de on 13 Nov 2011 at 6:53

GoogleCodeExporter commented 8 years ago
Thanks! Fixed, r2920baca8009.

Original comment by jbe...@gmail.com on 13 Nov 2011 at 10:12