Eclipse

Discussion in 'Mac Programming' started by ktalebian, Dec 25, 2007.

  1. ktalebian macrumors regular

    Joined:
    Dec 25, 2007
    #1
    Hi
    I am really new to Mac, and I have a quick question about Eclipse.
    So I downloaded the latest version, and then I started a C++ project.
    However, when I compile it, is says:
    make:*** no rule to make target 'all'

    Why?
    Thanks
     
  2. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    My suggestion would be to read the documentation. It sounds like Eclipse is not generating the makefile correctly for the project.

    I have never used Eclipse so I do not know how it works.
     
  3. VoidBoi macrumors regular

    Joined:
    Feb 5, 2007
    Location:
    Australia
    #3
    Do you have the developer tools installed? I'm assuming Eclipse needs them as they include gcc and such like.
     
  4. ktalebian thread starter macrumors regular

    Joined:
    Dec 25, 2007
  5. VoidBoi macrumors regular

    Joined:
    Feb 5, 2007
    Location:
    Australia
    #5
    Odd, I just created a C project and it seemed to work fine.

    I'm assuming you've used Eclipse before and what you've done works fine on Windows/Linux?
     
  6. ktalebian thread starter macrumors regular

    Joined:
    Dec 25, 2007
    #6
    I've used MS Visual Basics on Windows before. I have just purchased a Mac, and this is the first time I am using Eclipse. What I did was, I went to File->New->C++ Project
    and all I created was a simple cout << "Hello World!"; yet, it gives me that error!
    Why?
    Thanks alot
     
  7. ktalebian thread starter macrumors regular

    Joined:
    Dec 25, 2007
    #7
    Alright, I fixed that problem. When I created a project, I used Advance setting, and selected an automatic makefile creation.
    However, now that I compile the program, I get the following 2 errors:
    make:***[Test] Error 1
    symbol(s) not found

    What's up with that now?!
     
  8. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #8
    Seriously I'd read the documentation. Or just use Xcode it will probably be easier and is a nice IDE to use.
     
  9. VoidBoi macrumors regular

    Joined:
    Feb 5, 2007
    Location:
    Australia
    #9
    ktalebian: try rereading simple C++ examples. They work perfectly for me here.

    Code:
    #include <iostream.h>
    
    int main()
    {
    	std::cout << "Hello World!";
    }
    That's the complete code I used. You're probably not including iostream or implementing int main().
     
  10. ktalebian thread starter macrumors regular

    Joined:
    Dec 25, 2007

Share This Page