Using Xcode's C/Cpp Compilers,Make, and Debugger Commands

Hello,
I am trying to configure a copy of Netbeans for use on my Macbook Pro running Snow Leopard.  I installed the XCode directories today and I am trying to point Netbeans to the right C Compiler, C++ Compiler, Assembler, Make Command, and Debugger Commands that were provided with XCode.  I have pointed it to the following locations but Netbeans doesn't even understand the   #include <cstdlib>  directive.  I've included the Netbeans parameters that I have to fill in as well as the directory with the Apple llvm XCode compilers.  Thank you so much for your help.
If someone could please tell me which of these compilers need to go where to allow Netbeans to compile C/C++ code and also help me figure out how to fill out the "Assembler", "Make Command", and "Debugger Command" I would be very grateful.
Thanks,
Evan

Since Xcode puts symbolic links in the standard Unix directories, and since the tools are smart enough to call the correct variants when required, why not just use (assuming from your graphics that you want to use the LLVM frontend to the GNU toolchain):
/usr/bin/llvm-gcc (C Compiler)
/usr/bin/llvm-g++ (C++ Compiler)
/usr/bin/make (Make)
/usr/bin/gdb (Debugger)
Or, if you didn't install the Unix development tools and just the Xcode tools, use:
/Developer/usr/bin/llvm-gcc
etc, etc.
This also has the advantage that you won't break your tools every time you update Xcode.
Finally, you do realize that you only need to provide an assembler if you are actually writing Assembly Language code that needs to be compiled (similarly to how you only need to provide a Fortran compiler if you are going to be writing and compiling Fortran...).

Similar Messages

  • Is 256gb enough to use xcode, Microsoft office student, iBooks author and download the iOS sdk

    Please help as I'm not sure whether to get a macbook pro or air. I prefer the look of the air but I'm not sure if 256gb flash storage is enough for what I want to do. I would always surf the Internet and use Microsoft word, excel and PowerPoint but I would also like to try Xcode and iOS sdk. Thank you. However Im not willing to buy the air with 512 gb so if the 256 gb isn't enough then I'll go for the pro.

    Welcome to Apple Communities
    256 GB are a lot for do only what you need. It's perfect

  • Error trying to validate app using Xcode: "An SSL error has occured and a secure connection to the server cannot be made."

    After I have done a last Apple Updated on my computer, can't anymore validate or submit apps usign Xcode, everytime I received this message: "An SSL error has occured and a secure connection to the server cannot be made"
    Any ideas?

    I had this happen a while ago too when I switched development machines, but I was able to submit it from a friend's house, so I'm pretty sure it is my ISP but this should not be a problem. I am trying to push out another update and I'm having the same problem again. I would be very happy if there was a permanent solution to this problem.

  • I am using Xcode 5 to make a calculator app and I cannot figure out how to do two things.

    So I am using Xcode 5 to make a calculator app and I cannot figure out how to two do two things. First, how to incorporate the decimal and two, how to make the positive to negative button. The app is only for the iPad. I would like to know how to do it asap. Here is the code I used for addition if that helps.
    -(IBAction)Addition:(id)sender;{
        if (RunningTotal == 0){
            RunningTotal = SelectNumber;
        else{
            switch (Method) {
                case 1:
                    RunningTotal = RunningTotal * SelectNumber;
                    break;
                case 2:
                    RunningTotal = RunningTotal / SelectNumber;
                    break;
                case 3:
                    RunningTotal = RunningTotal - SelectNumber;
                    break;
                case 4:
                    RunningTotal = RunningTotal + SelectNumber;
                    break;
                default:
                    break;
        Method= 4;
        SelectNumber= 0;

    sorry i just saw the search feature and found a few of the same questions. I will check those

  • Hello friends , I have started with writing  c code on mac using xcode .....but one of my friend told me to use gcc for coding. He started with terminal And used a text editor to compil the c program on his mac.. So please tell me how to do the same

    Hello friends , I have started with writing  c code on mac using xcode .....but one of my friend told me to use gcc for coding. He started with terminal And used a text editor to compil the c program on his mac.. So please tell me how to do the same and is there any pre stalled text editor on mac if yes then where and if no then which text editor to install and how to install gcc...please help me out thanks in advance !!!

    I have started with writing  c code on mac using xcode .....but one of my friend told me to use gcc for coding.
    Why? If you are developing and writing code on a Mac why would you not use the tools Apple has given you? And Xcode, once you get use to it, is a very nice development environment that will make you life a whole lot easier.
    If you insist on using an editor and the terminal I would recommend  Emacs   but it has a long learning curve so  something like TextWrangler  will work too.
    As for the compiler if you have Xcode installed install the command line tools and you will be able to compile from the terminal.
    good luck

  • How can I make a graph using Xcode?

    Hi,
    I'd like to make a graph using Xcode 3.2.5 on an iMac 2009 with Mac OS X 10.6.7. I'm reading temperatures through the serial port (using an USB-serial cable) and I want to show how the temperature increases or decreases along the time. Can anyone help me?
    Thanks.

    history of this question is found here!
    Message Edited by GerdW on 11-26-2007 04:09 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • I cannot figure out how to set my apple id to use: itunes (two of accounts), apps store and Itunes store. How do I make one password that will be recognixed by all these devices?

    I cannot figure out how to set my apple id to use: itunes (two of accounts), apps store and itunes store. How do I make one password that will be recognized by all these devices? My apple id is constantly not working.

    Hi Lrwill,
    If the apps that are on your son's iPad were purchased under his Dad's Apple ID, then signing your Apple ID onto the iPad will not help you with updating those apps.
    Also, if the iPad was sync'd with his Dad's iTunes library, then hooking it up to your computer/iTunes library, will require you to reset the iPad, and everything that was loaded under the other Library and Apple ID will be wiped out.
    Can you provide a little more info about what was set up under which Apple ID and what iTunes library the iPad was sync'd with?
    Cheers,
    GB

  • On my iPhone 4, people cant hear me when I make and / or receive normal (GSM) phone calls. But when on calls using internet based / native apps like viber or skype, people can hear me just fine. Voice memos work too and have already tried different SIMs

    On my iPhone 4, people cant hear me when I make and / or receive normal (GSM) phone calls. But when I make/receive calls using internet-based / native apps like viber or skype, people can hear me just fine. I have tried recording my voice using voice memos - this works. And have already tried different SIM cards but the problem persists.
    I have taken my phone to an authorized Apple service center, where they restored my phone to factory settings, but still facing the same issue. They service center directed me to Apple Customer Care Hotline, where I have now spent 3+ hours explaining my issue and yet no one can resolve it. The easy answer if to replace the phone - and since it is out of warranty, I am expected to pay for it.
    Additionally, the customer service has been so rude and confrontational that it has completely changed my view of Apple and its customer focus. I am a disappointed and angry customer today - people would be surprised to hear just how rude customer service was including making statements such as "Apple doesnt make infallible products, that's why warranty is needed for our products" and that "every product undergoes a problem at some stage, so do ours!" There goes whatever confidence I had...
    My concern is simple - if no one at Apple and / or its CS hotline is able to address my issue comprhensively and keep telling me that they have never encountered a precedent before, then with what right can they expect me to pay for a replacement?! I am NOT here to fund Apple's research into their product faults and manufacturing.
    And even though a customer is out of warranty, is it too much to expect an Apple product to work well for at least a 'reasonable' period of time. My phone is less than 18 months old and has been facing this issue for the past 2 months - surely the longevity of Apple products is more than 18 months!
    Just a sad sad day for an Apple customer, compounded by unjustifiably rude and aggressive staff. And still no resolution to my problem.

    I am having the same issue - with my last 2 iPhone 4's. My first handset each time I was on a call wether it was up to my ear or on loud speaker, the call would automatically mute even though the mute button wouldn't show up as highlighted. Pressing the mute button on and off during the call doesn't fix it either. I rang Apple and asked what some of their trouble shooting solutions were. I got told that it might be a software issue and to install the latest software update. This failed. I then got told to uninstall the software on the phone and do a complete restore. This also failed. After trying the troubleshooting suggestions, I took the phone into my provider and they sent me out a new phone within a week under warranty claiming it was a hardware issue and probably just a "glitch" with that particular phone. This was not the case....
    After receiving my second iPhone 4, I was hopeful that it would work. For the first couple of days, making/receiving calls was not an issue. Until after about a week, the same problem started again. In one instance I had to hang up and call back 4 times and the call would still automatically mute after about 5 seconds. Also on the second handset, the main camera located on the back of the phone has red and blue lines running through it and can't take a decent picture. So back to the store I go to get another replacement - Again.
    For a phone that is rated highly and as a keen Apple product purchaser, I am a bit disappointed with the experience I have had with the iPhone 4. Let's hope they find a fix sometime soon because this is becoming a bit beyond a joke.....!!

  • Hi. I use Adobe Acrobat XI pro to make a PDF ebook embedded with audio. It works really well on my computer-I can read the book and hear the auto play mp3. The problem is, when I send it to my customers, they have difficulty hearing the audio. A few of th

    Hi. I use Adobe Acrobat XI pro to make a PDF ebook embedded with audio. It works really well on my computer-I can read the book and hear the auto play mp3. The problem is, when I send it to my customers, they have difficulty hearing the audio. A few of them say they have Flash player on their PC and somehow they still can't hear, some say their Google Chrome browser tells them they've already got one flash player while they try to download one. For me, I had to download two versions of Flash player to be able to access to the audio. I don't know what the problem is, is it because it's the latest version of Adobe Acrobat XI pro that people with older version of Adobe reader or flash player can't open it properly? Or is it something else? How can I make sure every customer with different system can access to my books? Hope to hear from you ASAP! Thank you very much.

    And how are the customers accessing the PDFs?
    What devices are they using?
    What program or apps with versions are they using?
    I this age of other then PDF eBooks formats and reader program and apss for computers and mobile devices for these formats I would look at creating the books in one or more of the eBook formats.
    Google Chrome and FireFox both have their own version of a PDF reader plug-in and they are well known to be less capable than Adobe Reader. It is possible to configure these products to use Adobe Reader.

  • I want to instal windows 7 using bootcamp on my mac book pro and how large do i have to make the partition if i want to use it for gaming?

    i want to instal windows 7 using bootcamp on my mac book pro and how large do i have to make the partition if i want to use it for gaming?

    "At least 16 GB of free space on the disk onto which you’re installing for 32-bit, or 20 GB for 64-bit (for Microsoft Windows and Windows-based applications)."
    That's what Apple proposes in here Boot Camp: System requirements for Microsoft Windows
    Personally I would double these amounts and add to that the diskspace needed for your Windows games.
    Stefan

  • Im using xcode 4.6 and im having problems reading files using the fopen function in c

    Im using xcode 4.6 and im having problems reading files using the fopen function in c

    Yes, but that would not cause the "build  failed" message.
    right I missed that part. Looks like two problems then.
    //  main.m
    //  ASCTestFopen
    //  Created by Frank Caggiano on 3/2/13.
    //  Copyright (c) 2013 Frank Caggiano. All rights reserved.
    #import <Foundation/Foundation.h>
    #include <stdio.h> 
    int main(int argc, const char * argv[])
        @autoreleasepool {
            FILE *fp, *fopen();
            // insert code here...
            if((fp = fopen("~/test.txt","r")) == NULL)
                NSLog(@"open failed");
        return 0;
    This will compile ad run in Xcode with a project type of comand line tool

  • HT3258 I have Snow Leopard 10.6.8 installed. For me to use XCode 4.5, I must have 10.7 or later. What is the best way to go ahead? Should I install OS X Lion and then move to Mountain Lion, or can I straight away install latest Mountain Lion, i.e. 10.8.2

    I have Snow Leopard 10.6.8 installed. For me to use XCode 4.5, I must have 10.7 or later. What is the best way to go ahead? Should I install OS X Lion and then move to Mountain Lion, or can I straight away install latest Mountain Lion, i.e. 10.8.2

    You can directly install Mountain Lion 10.8.0 to 10.6.8, and then apply the 10.8.2 Update.
    Hope this helps

  • Is my iMac now useless as i have installed lion and i am no longer able to run cs2 photoshop and illustrator as this is all i use my mac for they should make this clear before buying it i can't afford the latest version of cs2

    is my iMac now useless as i have installed lion and i am no longer able to run cs2 photoshop and illustrator as this is all i use my mac for they should make this clear before buying it i can't afford the latest version of cs2 and cant believe what a waste of money it is.

    The newest version of CS2 is CS5. And it was made very clear that these applications would not run in Lion. Not only by Apple, but on all sorts of communities and websites. It has been a long time coming - PowerPC apps were outdated six years ago. Lion does not support Rosetta, and therefore not PPC apps.
    you have to options. Go back to Snow Leopard or upgrade your software. (MS Office 2004 and older will not run either).
    Cheers

  • When using printer Epson R1900 with Aperture 3 and if I mistakenly choose the wrong paper such as, epson's luster instead of glossy, does that change the exposure? Like make it too dark one or two stops!

    When using printer Epson R1900 with Aperture 3 and if I mistakenly choose the wrong paper such as, epson's luster instead of glossy, does that change the exposure? Like make it too dark one or two stops!

    Hi,
       If you choose the incorrect settings for printing, yes - the print quality will be affected.
    Different papers absorb the ink differently, so you can end up with prints that are too light, too dark, or have a colour cast if you make incorrect choices in your Aperture or printer settings.

  • I am using Xcode 5  on Mac Book with configuration Memory  5 GB 1067 MHz DDR3  and Processor  2.4 GHz Intel Core 2 Duo. It is getting hanged every time  whenever i work on Storyboard.  As my storyboard consists of 25 scenes. Please help I m suffering.

    I am using Xcode 5  on Mac Book with configuration Memory  5 GB 1067 MHz DDR3  and Processor  2.4 GHz Intel Core 2 Duo. It  hangs every time  whenever i work on Storyboard and even on clicking on any of the controller it takes time to open.  As my storyboard consists of 25 scenes. I searched a lot but did not get any results . I have upgraded my xcode to xcode 5.0.2  which is bug free as compare to xcode 5. Please help I m struggling with this problem a lot.

    iTunes for Mac
    http://support.apple.com/en-us/HT201693
    http://www.apple.com/itunes/download/
    Was it installed before? Does it show up in Software Update?
    Do other updates show up there (realizing that Lion is not getting all the updates anymore as it is no longer being supported).
    Apple Downloads
    - Always a place to manual download.
    MacBook Pro
    Mac OS X Lion System Communities

Maybe you are looking for

  • How do you find the replys to the questions I asked?

    I searched using the search feature and this is what I got: font clarity I'm having trouble getting my font to display clearly with FireFox 4. Although it looks clearer on this website most others it comes off blurry and sometimes bunched up. Faceboo

  • Just upgraded and now can't access Yahoo IM. What an I do?

    I just upgraded to the newest version of Mozilla and now I can't access Yahoo IM from my Yahoo mail page. I can open and close IM, but when I click on a contact to chat, nothing happens. I get no messenger window to type in and when people send me an

  • [MRS] Conflict in Infotype 0001 between A and S object type

    Hi, We use SAP MRS on top of our HR box. (sorry, I am not a SAP MRS expert so bear with me please....) As we activated PA-PD integration, whenever a Work Center (otype A) is assigned to an employee (otype P), it updates the Infotype 0001 accordingly

  • IPod not syncing music

    I have an iPod 5 with the latest update. And in addition to the other problems I have met with this new iOS7, the biggest is not syncing music. At first it just didn't sync new music. I would unplug it and start over and resync many times but to no a

  • How to make an onKeyPressed function work

    Hi, i have some problems with making the onkeyPressed function work. Somehow when i run it, it complains about "'static' is no longer supported. It will be removed from the language soon. Use script-level declarations for Right ". So i need to get ar