Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ktalebian

macrumors regular
Original poster
Dec 25, 2007
214
0
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
 

Cromulent

macrumors 604
Oct 2, 2006
6,810
1,100
The Land of Hope and Glory
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

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.
 

VoidBoi

macrumors regular
Feb 5, 2007
138
0
Australia
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?
 

ktalebian

macrumors regular
Original poster
Dec 25, 2007
214
0
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
 

ktalebian

macrumors regular
Original poster
Dec 25, 2007
214
0
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?!
 

Cromulent

macrumors 604
Oct 2, 2006
6,810
1,100
The Land of Hope and Glory
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?!

Seriously I'd read the documentation. Or just use Xcode it will probably be easier and is a nice IDE to use.
 

VoidBoi

macrumors regular
Feb 5, 2007
138
0
Australia
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().
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.