On 6/15/06, Anthony DeRobertis <[EMAIL PROTECTED]> wrote: > fermi:/tmp anthony$ g++-3.3 foo.cpp > fermi:/tmp anthony$ echo $? > 0 > > fermi:/tmp anthony$ g++-4.0 foo.cpp > foo.cpp:1:20: error: iostream: No such file or directory > foo.cpp: In function 'int main()': > foo.cpp:4: error: 'cout' is not a member of 'std' > > fermi:/tmp anthony$ cat foo.cpp > #include <iostream> > > int main() { > std::cout << "foo\n"; > return 0; > } > > fermi:/tmp anthony$ locate iostream > /usr/include/gcc/darwin/3.3/c++/backward/iostream.h > /usr/include/gcc/darwin/3.3/c++/iostream > /usr/include/php/Zend/zend_istdiostream.h > > > Well, that's weird. How can a C++ compiler come without the C++ > library... Any idea how I pulled that off? Sort of stopped my attempt to > change over from 10.4-transitional to 10.4. >
It could have been Apple's installer. It loves to miss a file now and then to keep one on one's toes. It's in DevSDK.pkg: $ lsbom /Library/Receipts/DevSDK.pkg/Contents/Archive.bom | grep iostream ./usr/include/c++/4.0.0/backward/iostream.h 100644 0/0 1891 1829018338 ./usr/include/c++/4.0.0/iostream 100644 0/0 2958 2247339272 > Anyway, I'm downloading a xcode image to upgrade to 2.3 anyway, guess > I'll try and figure out how I got half of a C++ compiler tomorrow after > that download is done. > > > -- Alexander K. Hansen Fink Documenter (still) _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel