Thanks for trying this. I just tried your application verbatim (with changes just to the path and file names) using CodeWarrior and I got the same result I got before: a file named "/Junk/junkfile.txt" in my current directory instead of "junkfile.txt" in "/Junk".
When I try to compile from the command line terminal:
> c++ myfile.cpp
I get:
> ld: can't locate file for: -lcrt1.o
Is there anything **special** I need to do to get the Mac C++ compiler to work?
CodeWarrior and Apple's tools use two different toolchains, and aren't cross-compatible in most ways. (CW has a bitch of time because they had to deal with the old MacOS, then move over to MacOS X keeping backwards compatibility, while Apple tossed the old tools over utterly and started fresh with Unix-based tools. Much better for them.)
Do you have the Apple Dev Tools installed? Or just CW?
Comments
Originally posted by applejacko
rrabu,
Thanks for trying this. I just tried your application verbatim (with changes just to the path and file names) using CodeWarrior and I got the same result I got before: a file named "/Junk/junkfile.txt" in my current directory instead of "junkfile.txt" in "/Junk".
When I try to compile from the command line terminal:
> c++ myfile.cpp
I get:
> ld: can't locate file for: -lcrt1.o
Is there anything **special** I need to do to get the Mac C++ compiler to work?
CodeWarrior and Apple's tools use two different toolchains, and aren't cross-compatible in most ways. (CW has a bitch of time because they had to deal with the old MacOS, then move over to MacOS X keeping backwards compatibility, while Apple tossed the old tools over utterly and started fresh with Unix-based tools. Much better for them.)
Do you have the Apple Dev Tools installed? Or just CW?