0

I restarted Xcode and loaded a C++ project I had been working on. However, I got errors for undeclared identifiers. However, these errors are for variables that are either not on the line or simply don't exist (old deleted ones).

Example:

enter image description here

Commenting doesn't get rid of them either: enter image description here

I have tried:

  1. Pulling from my repo (not sure if that replaces the file)
  2. Commenting and uncommenting.
  3. Reinstalling xcode.

Nothing seems to work. Any help would be great!


Edit: Someone flagged this a potential duplicate. However the questioned they referenced does not mirror my issues. I am using xcode 5 and that user, even if their problem is the same, as mine is using xcode 4 and it sounds like their issue was with porting a project created with different versions of xcode.

Bren
  • 3,516
  • 11
  • 41
  • 73
  • 2
    Potential Duplicate: http://stackoverflow.com/questions/5431501/xcode-4-code-sense-is-not-working – ctor Aug 11 '14 at 21:11
  • Does your code compile? Are these errors purely with XCode itself? – ctor Aug 11 '14 at 21:12
  • Well I have references to functions that aren't defined yet so I know it wont compile. I don't the xcode will let it compile now though because it thinks there are these errors. – Bren Aug 11 '14 at 21:18
  • This is not a duplicate I have it tagged as xcode 5 that user even if their problem is the same as mine is using xcode 4 and it sounds like their issue was with porting a project created with different versions of xcode. Not the same thing. – Bren Aug 11 '14 at 21:20
  • Although different versions, I considered that your issue appears to be with the code sense feature and as a result the solution in that question may or may not work for you. – ctor Aug 11 '14 at 21:21
  • Just because you are using a different version of the software does not mean you should outright ignore any potential solution. Especially given that the solution I referenced appears to solve a problem similar to your own. – ctor Aug 11 '14 at 21:27
  • @ctor Either the restart or http://stackoverflow.com/a/9663353/2848483 worked. Good point ctor and thanks for the help. I think to me if the question is different and the answer is the same the question itself is not a "duplicate" but I'm new here so... – Bren Aug 11 '14 at 21:40

1 Answers1

0

Seems like either a restart or https://stackoverflow.com/a/9663353/2848483 worked thanks to ctor for finding that question.

Community
  • 1
  • 1
Bren
  • 3,516
  • 11
  • 41
  • 73