|Jan 18, 2013, 10:31 PM||#1|
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.
Last edited by Ides; Jan 18, 2013 at 11:31 PM.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Unexpected notifications from 10.9 Calendar||PliSsK||Mac Applications and Mac App Store||0||Mar 25, 2014 05:46 AM|
|IMac unexpected zooming in||Sturgeon boy||iMac||2||Dec 4, 2013 12:26 PM|
|Unexpected @ in program||emeryccc||iPhone/iPad Programming||7||Oct 27, 2012 11:44 AM|
|Unexpected problem with new rmbp||Autos||MacBook Pro||7||Jul 12, 2012 07:02 PM|
All times are GMT -5. The time now is 09:13 PM.