diff --git a/c++/examples/chunks.cpp b/c++/examples/chunks.cpp index b6db2ad05f..bbaf5b1050 100644 --- a/c++/examples/chunks.cpp +++ b/c++/examples/chunks.cpp @@ -28,6 +28,10 @@ #ifndef H5_NO_NAMESPACE using namespace H5; +#ifndef H5_NO_STD + using std::cout; + using std::endl; +#endif // H5_NO_STD #endif const string FILE_NAME( "SDSextendible.h5" ); diff --git a/c++/examples/compound.cpp b/c++/examples/compound.cpp index dfbd54404d..17d8f201a7 100644 --- a/c++/examples/compound.cpp +++ b/c++/examples/compound.cpp @@ -29,6 +29,10 @@ #ifndef H5_NO_NAMESPACE using namespace H5; +#ifndef H5_NO_STD + using std::cout; + using std::endl; +#endif // H5_NO_STD #endif const string FILE_NAME( "SDScompound.h5" ); diff --git a/c++/examples/extend_ds.cpp b/c++/examples/extend_ds.cpp index 614a2b1f8d..4913b28cd3 100644 --- a/c++/examples/extend_ds.cpp +++ b/c++/examples/extend_ds.cpp @@ -30,6 +30,10 @@ #ifndef H5_NO_NAMESPACE using namespace H5; +#ifndef H5_NO_STD + using std::cout; + using std::endl; +#endif // H5_NO_STD #endif const string FILE_NAME( "SDSextendible.h5" ); diff --git a/c++/examples/h5group.cpp b/c++/examples/h5group.cpp index a69f2f4dd7..7c931e3e6b 100644 --- a/c++/examples/h5group.cpp +++ b/c++/examples/h5group.cpp @@ -31,6 +31,10 @@ #ifndef H5_NO_NAMESPACE using namespace H5; +#ifndef H5_NO_STD + using std::cout; + using std::endl; +#endif // H5_NO_STD #endif const string FILE_NAME( "Group.h5" ); diff --git a/c++/examples/readdata.cpp b/c++/examples/readdata.cpp index 5a1ec51651..70f3727445 100644 --- a/c++/examples/readdata.cpp +++ b/c++/examples/readdata.cpp @@ -29,6 +29,10 @@ #ifndef H5_NO_NAMESPACE using namespace H5; +#ifndef H5_NO_STD + using std::cout; + using std::endl; +#endif // H5_NO_STD #endif const string FILE_NAME( "SDS.h5" ); diff --git a/c++/examples/writedata.cpp b/c++/examples/writedata.cpp index f50927d18c..94c952bd7d 100644 --- a/c++/examples/writedata.cpp +++ b/c++/examples/writedata.cpp @@ -32,6 +32,10 @@ #ifndef H5_NO_NAMESPACE using namespace H5; +#ifndef H5_NO_STD + using std::cout; + using std::endl; +#endif // H5_NO_STD #endif const string FILE_NAME( "Select.h5" );