Re: Can't build after renaming a source file
Re: Can't build after renaming a source file
- Subject: Re: Can't build after renaming a source file
- From: "Shawn Erickson" <email@hidden>
- Date: Tue, 8 May 2007 14:28:24 -0700
On 5/8/07, Tereza Snyder <email@hidden> wrote:
While I was working on a very ordinary plugin project that I have
been happily building and testing, I noticed that my single source
file wasn't well named, and using the "rename" menu option in the
project window, I renamed the file from "test6.c" to "test.c". Now it
won't build! Even when I rename it back, it won't build!
I get the error:
:361: error: parse error before string constant
pointing at the first use of a macro from a header file. This is the
invocation:
EXTERNAL_BEGIN_DECLARATIONS("tester")
This is the macro:
#define EXTERNAL_BEGIN_DECLARATIONS(m_name) \
const char *g_external_name = m_name; \
ExternalDeclaration g_external_table[] = {
I see nothing strange here.
The header file was not touched; I know the header file is being read
because if I comment out its #include, missing #defines earlier in
the source file generate errors.
I have cleaned the project. I have closely inspected the project
settings and have detected no change. I am not using SCM. The only
thing that changed between successful builds and failing builds is
renaming the file.
Any clues?
What is the line before the failing line, etc.?
What does the preprocessed file look like? (select file/open it and
select "Preprocess" from the "Build" menu)
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden