I hope this is the proper place to ask this question. I have had a heck of a time trying to use valarrays in my code. it seems that the compiler just isnt recognizing the type declaration. here is a sample of code and the resulting gcc error: -----start---- #include <valarray> std::valarray<int> v1; // construct an empty valarray std::valarray<int> v2(1,3); // construct a valarray of three // elements, all initialized to 1 v1.resize(3,2); // resize the first valarray to three // elements, all initialized to 2 std::valarray<int> v3(v1); // v3 gets a copy of v1's elements. -----end----- -----result----- [fire:~/test] dmccoy% gcc -v test.cpp Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs Thread model: posix gcc version 3.3 20030304 (Apple Computer, Inc. build 1495) /usr/libexec/gcc/darwin/ppc/3.3/cc1plus -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -D__APPLE_CC__=1495 -D__DYNAMIC__ test.cpp -D__GNUG__=3 -fPIC -quiet -dumpbase test.cpp -auxbase test -version -D__private_extern__=extern -o /var/tmp//ccLgO6Lk.s GNU C++ version 3.3 20030304 (Apple Computer, Inc. build 1495) (ppc-darwin) compiled by GNU C version 3.3 20030304 (Apple Computer, Inc. build 1495). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/usr/ppc-darwin/include" ignoring nonexistent directory "/Local/Library/Frameworks" #include "..." search starts here: #include <...> search starts here: /usr/include/gcc/darwin/3.3/c++ /usr/include/gcc/darwin/3.3/c++/ppc-darwin /usr/include/gcc/darwin/3.3/c++/backward /usr/local/include /usr/include/gcc/darwin/3.3 /usr/include End of search list. Framework search starts here: /System/Library/Frameworks /Library/Frameworks End of framework search list. test.cpp:6: error: syntax error before `.' token [fire:~/test] dmccoy% ---end result--- the code is rather simple but i still cant get it to compile. can anyone offer guidance? doug mccoy Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ darwin-development mailing list | darwin-development@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development Do not post admin requests to the list. They will be ignored.