File System Access via C/C++

2»

Comments

  • Reply 21 of 21
    kickahakickaha Posts: 8,760member
    Quote:

    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?
     0Likes 0Dislikes 0Informatives
Sign In or Register to comment.