Xcode help

emeeme
Posted:
in Genius Bar edited January 2014
Hi,



in class i need to make some c++ projects, i usually code each file separately on Xcode and then compile them on terminal like :



g++ one.cc one.h one.cpp -o one



is there anyway to create an xcode project to do these



i've tried creating a c++ tool with the new project wizard, but it doesn't works well

Comments

  • Reply 1 of 5
    kickahakickaha Posts: 8,760member
    er, yeah.



    Make a new project for C++ Tool. Add your files. Hit build.



    Should do it.



    How is this not working for you?
  • Reply 2 of 5
    emeeme Posts: 55member
    one of the errors im getting is from the .cpp file it says some files are not found:



    (x) #include <iostream>

    (x) #include <cstdlib>
  • Reply 3 of 5
    please anyone HELP!!



    here are the files that i'm trying to compile with xcode...

    the zip includes a .h .cc .cpp and .xcode files

    Archive.zip



    they compile ok using the terminal: 'g++ fecha.cc fecha.h fechaDriver.cpp -o fecha'
  • Reply 4 of 5
    mcqmcq Posts: 1,543member
    Make C++ tool.



    Right click on sources folder, add existing files.

    Delete main.cpp reference.

    Build.



    Worked ok for me.
  • Reply 5 of 5
    it worked thanks i dont know why it wasnt working for me, but thanks
Sign In or Register to comment.