Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[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)



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to 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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.