• 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
Xcode does not resolve file-dependencies correctly (was: Re: crashes after changing signatures of virtual functions / virtual inherited classes)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode does not resolve file-dependencies correctly (was: Re: crashes after changing signatures of virtual functions / virtual inherited classes)


  • Subject: Xcode does not resolve file-dependencies correctly (was: Re: crashes after changing signatures of virtual functions / virtual inherited classes)
  • From: Stephan Huber <email@hidden>
  • Date: Fri, 04 Aug 2006 12:09:03 +0200

Hi all,

a small followup in regard to my problem with crashing inside dynamic_casts...

Thanks everybody for your valuable tips, I also discovered the phenomen, that XCode does compile an old version of a file, after hitting Cmd-S, but I think this is not the case here.

After some more investigation, it seems that XCode does not recompile all dependent files.

Here's the source-layout on my file-system:

src/Application/Compontent1/File1.h
src/Application/Compontent1/File1.cpp
src/Application/Compontent1/File2.h
src/Application/Compontent1/File2.cpp

src/Application/Compontent2/File3.h
src/Application/Compontent2/File3.cpp

src/Application/main/main.cpp

I am using absolute paths for my includes, so I can compile the same source with Visual C++ and with XCode. For XCode I am setting the "User Header Search Path" in the build-settings accordingly.

In my files I use for the #includes something like this:

#include "Application/Component1/File1.h"

So, and here's the real problem:

Say I have the following dependency-chain:

main.cpp -> File3.h -> File1.h

If I change something on File1.h, Xcode sometimes refuses to compile main.cpp, or File3.cpp and I think this leads to multiple class definitions because of the heavy usage of templates, which uses classes defined in File1.h as parameters for other templates.

Is there any settings I can tweak to get it working again?

How do other people lay out their headers and source-files for cross-plattform application-development?

Thanks in adavance!

Stephan

_______________________________________________
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


  • Follow-Ups:
    • Re: Xcode does not resolve file-dependencies correctly (was: Re: crashes after changing signatures of virtual functions / virtual inherited classes)
      • From: Steve Checkoway <email@hidden>
    • Re: Xcode does not resolve file-dependencies correctly (was: Re: crashes after changing signatures of virtual functions / virtual inherited classes)
      • From: Markus Hitter <email@hidden>
References: 
 >crashes after changing signatures of virtual functions / virtual inherited classes (From: Stephan Huber <email@hidden>)
 >Re: crashes after changing signatures of virtual functions / virtual inherited classes (From: Chris Espinosa <email@hidden>)
 >Re: crashes after changing signatures of virtual functions / virtual inherited classes (From: Stephan Huber <email@hidden>)

  • Prev by Date: Re: adding new group
  • Next by Date: Re: Xcode does not resolve file-dependencies correctly (was: Re: crashes after changing signatures of virtual functions / virtual inherited classes)
  • Previous by thread: Re: crashes after changing signatures of virtual functions / virtual inherited classes
  • Next by thread: Re: Xcode does not resolve file-dependencies correctly (was: Re: crashes after changing signatures of virtual functions / virtual inherited classes)
  • Index(es):
    • Date
    • Thread