Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Terminal/C++ compiler



George Japaridze <email@hidden> writes:

> #include <iostream.h>
> int main()
> {
> cout << "Hello World\n";
> return (0);\
> }
[snip]
> Hi.cc:1: iostream.h: No such file or directory", or the cursor freezes.

For future reference, you should be including <iostream>, not
<iostream.h>; the latter is for backward compatibility only. Also,
cpp is the C PreProcessor; since it hasn't been told (by the c++
compiler driver) where the STL include files are, it can't find them.

--Jed

--
#!/usr/bin/perl -- ## "But life wasn't yes-no, on-off. Life was shades of gray,
sub f{(($n,$d,@_)=@_)?(substr(## and rainbows not in the order of the spectrum."
" ExhortJavelinBus",$n&&$d/$n,1),$n?f($d## -- L. E. Modesitt, Jr., _Adiamante_
%$n,$n,@_):&f):("\n")}print f 1461,10324,55001,444162,1208,1341,5660480,79715997
_______________________________________________
darwinos-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwinos-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Terminal/C++ compiler (From: George Japaridze <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.