I am a new Mac OS user, and I have problems building my programs. At the beginning the compiler was not found. I set the paths in ".profile", and that problem has been solved. Now the linker gives me errors such as:
error: iostream: No such file or directory
If I do not include *any* file (in a simple test program), I get:
ld: library not found for -lcrt1.10.6.o
collect2: ld returned 1 exit status
I suppose I did not install everything needed, but when I installed MacOS X 10.6 with XCode I just followed what indicated...
Thank you for any help,
Pietro
MacBook Pro 17" (2009)
MacOS X 10.6
gcc 4.2
Source code:
error: iostream: No such file or directory
If I do not include *any* file (in a simple test program), I get:
ld: library not found for -lcrt1.10.6.o
collect2: ld returned 1 exit status
I suppose I did not install everything needed, but when I installed MacOS X 10.6 with XCode I just followed what indicated...
Thank you for any help,
Pietro
MacBook Pro 17" (2009)
MacOS X 10.6
gcc 4.2
Source code:
Code:
#include <iostream>
int main()
{
std::cout << "Hello world!" << std::endl;
return 0;
}