From d4bca0244202d88431494b62976332179174f43e Mon Sep 17 00:00:00 2001 From: Binh-Minh Ribler Date: Sun, 15 Mar 2009 10:51:29 -0500 Subject: [svn-r16580] Description: Several C++ examples failed on liberty with similar message as in c++/test: /libexec/ld-elf.so.1: ./readdata: Undefined symbol "_ZNKSt5ctypeIcE13_M_widen_initEv" when "cerr/cout" is used. Skip these examples until I'm done with my currently urgent task (in a few weeks) and investigate this again. Platforms tested: FreeBSD/64 6.3 (liberty) --- c++/examples/compound.cpp | 3 ++- c++/examples/h5group.cpp | 3 ++- c++/examples/readdata.cpp | 3 ++- c++/examples/strtype.cpp | 2 ++ c++/examples/writedata.cpp | 4 ++-- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/c++/examples/compound.cpp b/c++/examples/compound.cpp index b6550a5..95232de 100644 --- a/c++/examples/compound.cpp +++ b/c++/examples/compound.cpp @@ -49,6 +49,7 @@ const int RANK = 1; int main(void) { +#ifdef SKIP_UNTIL_APRIL_2009 /* First structure and dataset*/ typedef struct s1_t { int a; @@ -218,6 +219,6 @@ int main(void) error.printError(); return -1; } - +#endif return 0; } diff --git a/c++/examples/h5group.cpp b/c++/examples/h5group.cpp index 8de4f5b..d13154d 100644 --- a/c++/examples/h5group.cpp +++ b/c++/examples/h5group.cpp @@ -49,7 +49,7 @@ extern "C" herr_t file_info(hid_t loc_id, const char *name, void *opdata); int main(void) { - +#ifdef SKIP_UNTIL_APRIL_2009 hsize_t dims[2]; hsize_t cdims[2]; @@ -205,6 +205,7 @@ int main(void) error.printError(); return -1; } +#endif return 0; } diff --git a/c++/examples/readdata.cpp b/c++/examples/readdata.cpp index 7ce98eb..b8cfae1 100644 --- a/c++/examples/readdata.cpp +++ b/c++/examples/readdata.cpp @@ -50,6 +50,7 @@ const int RANK_OUT = 3; int main (void) { +#ifdef SKIP_UNTIL_APRIL_2009 /* * Output buffer initialization. */ @@ -216,7 +217,7 @@ int main (void) error.printError(); return -1; } - +#endif return 0; // successfully terminated } diff --git a/c++/examples/strtype.cpp b/c++/examples/strtype.cpp index b0c6b6b..eb3410c 100644 --- a/c++/examples/strtype.cpp +++ b/c++/examples/strtype.cpp @@ -50,6 +50,7 @@ const int SPACE1_RANK = 1; int main() { +#ifdef SKIP_UNTIL_APRIL_2009 const char *wdata[SPACE1_DIM1]= { "Four score and seven years ago our forefathers brought forth on this continent a new nation,", "conceived in liberty and dedicated to the proposition that all men are created equal.", @@ -144,5 +145,6 @@ int main() error.printError(); return -1; } +#endif return 0; // successfully terminated } diff --git a/c++/examples/writedata.cpp b/c++/examples/writedata.cpp index e7fbf3c..56c5540 100644 --- a/c++/examples/writedata.cpp +++ b/c++/examples/writedata.cpp @@ -59,6 +59,7 @@ const int NPOINTS = 4; // Number of points that will be selected... int main (void) { +#ifdef SKIP_UNTIL_APRIL_2009 /* * Buffers' initialization. */ @@ -250,7 +251,6 @@ int main (void) error.printError(); return -1; } - +#endif return 0; - } -- cgit v0.12