• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can't build after renaming a source file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Can't build after renaming a source file (From: Tereza Snyder <email@hidden>)

  • Prev by Date: Can't build after renaming a source file
  • Next by Date: Re: Can't build after renaming a source file
  • Previous by thread: Can't build after renaming a source file
  • Next by thread: Re: Can't build after renaming a source file
  • Index(es):
    • Date
    • Thread