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

sammich

macrumors 601
Original poster
Sep 26, 2006
4,305
268
Sarcasmville.
In something as simple as:
Code:
#include <iostream>
using namespace std;

int main() {
	return 0;
}

I get a list of the undefined symbols bookended by "ld: symbol(s) not found". I am compiling using just gcc -o test test.cc, something which has worked in the past.

I have XCode 3.2 (1610) installed. And making a project as a CLI tool (10.6) and building it works.

And preferably I'd like to keep from downloading XCode all over again as I don't exactly have a that much bandwidth for the month to spare.

What happened? I haven't used C++ in a while as I was doing a course that required straight C so I don't know where things stopped working.
 
Updated my post above:

Building the code as a CLI tool in XCode as a 10.6/10.5 executable works without a hitch.

So are there some extra arguments that I need to give to gcc to get it to compile properly?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.