Compile is grayed out

Discussion in 'Mac Programming' started by eddyq, Sep 10, 2009.

  1. eddyq macrumors member

    Joined:
    Jun 10, 2009
    #1
    I'm using xcode version 3.1.3. Sometimes the Build/Compile option is grayed out and I don't understand why. Sometimes is not though so I know it is in the project properly. For example, if I build then it does compile that file but if I open the file the Compile selection is gray.

    Does anyone have a clue as to why this would happen?
     
  2. SRossi macrumors regular

    Joined:
    May 27, 2009
    Location:
    Glasgow, Scotland
    #2
    If you are only trying to compile a single file that is part of a project you will need to compile the complete project.

    Unless I am not understanding what you are saying you will need to open the .xcodeproj file and compile from there.

    Stephen
     
  3. eddyq thread starter macrumors member

    Joined:
    Jun 10, 2009
    #3
    I have the .xcodeproj file open. I open the file to be compiled by using the list of files that is in the project. The odd thing is that this most of the time this works but sometimes the compile option is grayed out and apple/K does not work either.
     
  4. eddyq thread starter macrumors member

    Joined:
    Jun 10, 2009
    #4
    It's back ... all I did was to click on the error message and that took me to the .d file. I made a fix but if I click on Build the Compile option is gray. This is very frustrating. What causes this to happen?
     
  5. eddyq thread starter macrumors member

    Joined:
    Jun 10, 2009
    #5
    I continue to be haunted by this. Does anyone know why Compile would be grayed out? Note that Preprocess is too.
     
  6. eddyq thread starter macrumors member

    Joined:
    Jun 10, 2009
    #6
    Never mind ... I found the problem. In order to use Compile and Preprocess you have to have the Groups & Files in focus and highlight the file name in the Groups & Files pane. I was used to Windows where all you need to do is have the file open with the editor (or debugger).
     

Share This Page