-3

The following html link contains all the relevant bash command line records of the installation process. Thank you for help!

That was a bad question

I didn't use XCode through I know Xcode will make it easier! I use an Air, memory of 4GB currently. If this won't work easily I probably will quit learning C or run and compile C on Windows. :(

And XCode stuff, whatever.

green_claws
  • 13
  • 1
  • 6

2 Answers2

2

You command-line output indicates rather clearly that you aren't telling gcc what to compile, so it's throwing its hands up in exasperation:

$ gcc
i686-apple-darwin10-gcc-4.2.1: no input files

You'll need to specify the file you're compiling. Better yet, use an IDE, like Xcode.

1

<Shrug> What do you want us to say?

Obviousy Macports is trying to build/install gcc but it can't without a compiler. Yes gcc can be built without a preexisting compiler, but good luck and why? Especially when XCode is a free download, click click let it start and a little while later it's done. At that point as pointed out elsewhere, gcc, g++ will work, but it's not actually gcc but clang in disguise.

If you want, you can use macports or brew or whatever later if you really want to, but again why? For programs that only work using gcc extensions? Doubt it. You just want a c/c++ compiler. If you ever want to do programs for the Mac or IPhone, you need XCode anyway, gcc won't do.

Community
  • 1
  • 1
waTeim
  • 9,095
  • 2
  • 37
  • 40
  • That is true. I was concerned that XCode would take too much memory while it's working on an Air, and that's all. Thank you for the suggestion. – green_claws Mar 23 '14 at 04:33