Re: c++ includes in a Framework?
Re: c++ includes in a Framework?
- Subject: Re: c++ includes in a Framework?
- From: Andy Wiese <email@hidden>
- Date: Sun, 21 Nov 2004 17:33:37 -0600
On Nov 21, 2004, at 2:48 AM, Andy Wiese wrote:
Up to now, I have been building a test application in Xcode, with a
codebase that is ultimately intended to be a framework, but I figured
it would be easier to debug a monolithic app to start with.
Today I built a new Xcode project, moving stuff around so that my
relative paths are friendly to Xcode, and I set up the new project
using the stationary framework instead of an app. Building the
framework, it says that it can't find any of the standard library c++
headers.
/Users/andy/Projects/xcode_sandbox/p_/p_core/include/p_.h:14:19:
cstring: No such file or directory
/Users/andy/Projects/xcode_sandbox/p_/p_core/include/p_.h:15:18:
cstdio: No such file or directory
/Users/andy/Projects/xcode_sandbox/p_/p_core/include/p_.h:16:19:
cstdarg: No such file or directory
/Users/andy/Projects/xcode_sandbox/p_/p_core/include/p_.h:17:18:
string: No such file or directory
/Users/andy/Projects/xcode_sandbox/p_/p_core/include/p_.h:18:19:
sstream: No such file or directory
/Users/andy/Projects/xcode_sandbox/p_/p_core/include/p_.h:19:20:
iostream: No such file or directory
/Users/andy/Projects/xcode_sandbox/p_/p_core/include/p_.h:20:21:
streambuf: No such file or directory
...and so on...
I looked in the build details and I see that the App build process
calls ProcessPCH++ , but the framework build calls just ProcessPCH. I
don't want to go monkeying around with the header paths unless I know
what I'm doing.
What do I need to do to build a framework with c++ standard library
headers?
Answered my own question. Setting the target settings "Compile Sources
As" option to C++ fixed it. I don't understand why the default option
causes an application to compile as c++, but a framework to compile as
c, but that seems to be the answer.
_______________________________________________
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