C, C++ NetBeans, Xcode gcc Primer Tutorial

C, C++ NetBeans, Xcode gcc Primer Tutorial

C, C++ NetBeans, Xcode gcc Primer Tutorial

Today’s tutorial has come about as a consequence of Xcode and its Command Line Tools Primer Tutorial in the sense that the installation of Xcode Command Line Tools (in earlier Xcode versions … think maybe less than 4 … “out of the box” it lived with C and C++’s great gcc compiler … have talked about this before … raved perhaps??!!! … anyway … that went away with the later versions … but you can get it back) “closes the circle” on the separation of C and C++, at least as far as NetBeans is concerned, so that we can use the installed Xcode Command Line Tool gcc compiler for C work and use the GNU compiler for C++ in NetBeans … cute, huh?

Today’s tutorial helps in another way, in that you get a C makefile out of it. Steve Winwood sang “While You See A Chance Take It”, and that is something apt here. Build on something simple and working and today’s NetBeans/gcc makefile is for a simple Hello World program. This is why programmer’s use Hello World so much … it is simple … build on “simple”.

Link to downloadable NetBeans C makefile (for main.c) configuration file you can rename to Makefile (the parent) and its children Makefile-Debug.mk, Makefile-impl.mk, Makefile-Release.mk, Makefile-variables.mk

Hope you enjoy this tutorial (and if necessary consult the tutorial picture for more context) and the previous relevant C++ one called C++ Xcode OOP Exceptions Primer Tutorial.


Previous relevant Xcode and its Command Line Tools Primer Tutorial is shown below.

Xcode and its Command Line Tools Primer Tutorial

Xcode and its Command Line Tools Primer Tutorial

Xcode is a great GUI IDE application that comes with Macs “out of the box” (quite often). In the earlier versions … think maybe less than 4 … “out of the box” it lived with C and C++’s great gcc compiler … have talked about this before … raved perhaps??!!! … anyway … that went away with the later versions … but you can get it back. Why bother? If you like to look around and do those great command line offerings like Tcl/Tk or just plain simple C (like we do in this tutorial), as well as leaving your Xcode GUI C++ and Objective-C iOS mobile development intact, then think you should install Xcode Command Line Tools, like, yesterday, if you haven’t already.

Remember at the end of the month to say “hares” as your last word and “rabbits” as the first word of the next month.

Do we need to explain?

Butterflies in Brazil and all … why buck what the whole world’s doing? … chortle, chortle.

Anyway, this action opens a pandora’s box of possibilities with your Mac, and hope if you are in this position … you can test if you are by attempting to go gcc at the Mac Terminal bash command line … how’s the coffee? (if PM, how’s the daquiri?)

To get started, visit this stupendous link. Then get into Xcode and go to Xcode->Preferences…->Downloads (and hopefully you see the Command Line Tools install button to press … press with both hands, either hand, while doing a triple pike, but … just … do … it!)

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

This entry was posted in eLearning, NetBeans, Software, Tutorials, Xcode and tagged , , , , , , , , , . Bookmark the permalink.

17 Responses to C, C++ NetBeans, Xcode gcc Primer Tutorial

  1. UNFSU says:

    his is the excellent blog page for anyone who wants to know about this theme. You recognize a great deal its virtually difficult to argue with you (not that I really would wantÒ€¦HaHa). You definitely put a fresh spin on a subject matter thats been published about for numerous years. Wonderful items, just excellent!

  2. Undeniably says:

    I like what you guys are up also. Such clever work and reporting! Keep up the superb works guys I’ve incorporated you guys to my blogroll. I think it will improve the value of my web site :).

  3. over here says:

    I got what you mean , thankyou for posting .Woh I am pleased to find this website through google. “I was walking down the street wearing glasses when the prescription ran out.” by Steven Wright.

  4. Invincible says:

    Seriously good perspective, many thanks for expression.. Liking the blog post.. thanks a bunch Recognize the value of the posting you provided.. Supporting the weblog.. cheers

  5. I enjoy you sharing your perspective.. Incredibly advantageous standpoint, thanks for sharing with us.. My personal internet browsings seem total.. thank you. Isn’t it amazing after you locate a fantastic submit?

  6. SOS says:

    Great views you might have here.. Genuinely helpful viewpoint, thank you for giving.. Recognize the value of the admission you made available.. Adoring the weblog.. pleased

  7. excellent says:

    Loving the weblog.. thank you Is not it awesome whenever you locate a good submit? Good views you’ve got here.. Adoring the page.. thanks for your insight

  8. I do agree with all of the ideas you have presented to your post. They are really convincing and can definitely work. Nonetheless, the posts are too brief for newbies. May just you please lengthen them a little from subsequent time? Thank you for the post.

  9. Hi there, You’ve done a great job. I’ll definitely digg it and personally recommend to my friends. I’m sure they’ll be benefited from this website.

  10. I just wanted to write down a simple message to appreciate you for all of the superb items you are sharing here. My rather long internet search has at the end been recognized with reasonable facts and techniques to talk about with my companions. I ‘d express that we visitors actually are rather endowed to be in a fabulous network with many marvellous people with insightful plans. I feel very grateful to have discovered your entire webpage and look forward to tons of more awesome minutes reading here. Thanks once again for all the details.

  11. Una Hyldahl says:

    You are my breathing in, I have few blogs and rarely run out from to post .

  12. Kieth Corvin says:

    I conceive this internet site holds some very wonderful info for everyone :D. “Heat cannot be separated from fire, or beauty from The Eternal.” by Alighieri Dante.

  13. Darius Sahm says:

    Absolutely written content material , appreciate it for information .

  14. Al Dipilato says:

    What i do not realize is in truth how you are not really a lot more well-appreciated than you might be now. You are very intelligent. You recognize therefore considerably on the subject of this subject, made me for my part consider it from so many numerous angles. Its like men and women don’t seem to be interested except it is something to accomplish with Lady gaga! Your personal stuffs nice. At all times care for it up!

  15. Some genuinely superb blog posts on this web site , appreciate it for contribution.

  16. Thanks for helping out, fantastic info .

  17. CORENE says:

    Very good post. I absolutely love this website. Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>