Mailing Lists: Apple Mailing Lists

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

Thanks:Terminal/C++ Compiler



Thanks to everyone
and

1. Sorry for typo: there is no / after the return(0); The program is

#include <iostream.h>
int main()
{
cout << "Hello World\n";
return (0);
}

Now the results (OS X, version 10.1.4):

a) On "cc -o Hi Hi.cc" and "cc -g -o Hi Hi.cc"reply was "Hi.cc:1: iostream.h: No such file or directory"
b) On "cpp -o Hi Hi.cc"and "cpp -g -o Hi Hi.cc" terminal hunged in there (just the cursor blinks on a next line..) and after I killed the process using Ctrl-D (twice!), the file named "Hi" was created and now files Hi and Hi.cc are the same and contain just a single line " # 1 "" ".
c) On "c++ -o Hi Hi.cc" and "c++ -g -o Hi Hi.cc" reply was "Hi.cc:1: iostream.h: No such file or directory"
d) On "g++ -g -o Hi Hi.cc" the reply was "Hi.cc:1: iostream.h: No such file or directory"
e) Same with "c++ Hi.cc -o Hi"....

HILFE!!!

Case b) is intriguing.

I've removed ".h" from "<iostream.h>", i.e. left just "<iostream>. No results

Any further suggestions? What kind of Library we have there? I have 10.1.3 devtools I think. How should I compile?
On Unix everything's OK (when I telnet to college), but OS X beats me

Thanks again, and hope to hear from you all,
George

PS. Since you guys were so kind and helpful, let me try to cheer you up with the story about Erasm Darwin - the
grandfather of Charles Darwin. The story is related to "No results" I say in the message and DARWIN, of course.
So, here is the story (the real one, I did not make it up):

Erasm Darwin advocated the idea that one must perform experiment which look absolutely crazy, stupid, weird and disagriing with a common knowledge. As usual, he said, these experiments are rubbish but if something unexpected is found, this phenomenon would be really fundamental and groundbreaking.
Erasm Darwin played on his recorder every day during 2 months in front of the flowers of his garden.
No results.
_______________________________________________
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.


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.