Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Jan 18, 2013, 10:31 PM   #1
macrumors member
Join Date: Mar 2012
Unexpected Unqualified ID

I'm working on a program, being written in C++. I hit run and it built and ran fine. Then I added a simple "printf" in my code for a debugging purpose, and all of a sudden it failed to build. I removed the new line of code and it still fails to build. I click the red compiler error and it takes me to some header file called "__config" that gets included in iostream. It shows an error on an empty line of code, right before a namespace. I tried cleaning my project, restarting Xcode, and deleting the derived data folder. None of these worked. I'm also positive that I haven't edited this "__config" file ever.

Edit: I figured it out: Somehow, at the very top of my main.c file, before the copyright comments I had two & signs just sitting there. And for some reason, Xcode was interpreting that as an error in one of the system headers. Way to go, Xcode.
Sudoku Solver: Step by Step Explanations
Available for FREE on the app store.

Last edited by Ides; Jan 18, 2013 at 11:31 PM.
Ides is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 08:32 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC