Re: Why can't my X-Code find this file
Re: Why can't my X-Code find this file
- Subject: Re: Why can't my X-Code find this file
- From: Scott Tooker <email@hidden>
- Date: Wed, 8 Mar 2006 21:34:18 -0800
If for some reason you cannot change the filename, you can also change
the filetype of the file reference in Xcode to be
"sourcecode.cpp.objcpp". Then Xcode will compile the file as an
Objective-C++ file.
Scott
On Mar 8, 2006, at 8:31 PM, Orson Bushnell wrote:
You are trying to include a C++ header file in an Objective-C source
file. Either remove the include or change your source file to
Objective-C++ (.mm extension).
Orson Bushnell
On Mar 8, 2006, at 20:45, John Draper wrote:
In a lot of other files I've imported from Linux code,
I can do this...
#include <string>
And in all other files it compiles just fine, except this one...
------
#ifndef RTPLIBRARYVERSION_H
#define RTPLIBRARYVERSION_H
#include <string>
#include <stdio.h>
< other stuff deleted>
I get following errors.
Building target “SipApplication” with build style
“Deployment” (optimization:level ‘0’, debug-symbols:on) — (2221
errors, 185 warnings)
cd /Volumes/DevelopmentDevelopment/SIP_work/resiprocate-0.9.0-5019
/usr/bin/gcc-3.3 -x objective-c -arch ppc -pipe -Wno-trigraphs -
fasm-blocks -fpascal-strings -g -O0 -mtune=G4 -fmessage-length=0 -F/
Volumes/Development/SIP_work/resiprocate-0.9.0-5019/build -F/
Volumes/Development/SIP_work/resiprocate-0.9.0-5019 -I/Volumes/
Development/SIP_work/resiprocate-0.9.0-5019/build/include -I/
Volumes/Development/SIP_work/resiprocate-0.9.0-5019 -I/Volumes/
Development/SIP_work/resiprocate-0.9.0-5019/build/
SipApplication.build/SipApplication.build/DerivedSources -Wp,-
header-mapfile,/Volumes/Development/SIP_work/resiprocate-0.9.0-5019/
build/SipApplication.build/SipApplication.build/SipApplication.hmap
-include /Volumes/Development/SIP_work/resiprocate-0.9.0-5019/build/
SipApplication.build/SharedCaches/SipApplication_Prefix-
achwenxhanrvemcaxjscnhyuuvjl/SipApplication_Prefix.pch -c /Volumes/
Development/SIP_work/resiprocate-0.9.0-5019/AudTransport.m -o /
Volumes/Development/SIP_work/resiprocate-0.9.0-5019/build/
SipApplication.build/SipApplication.build/Objects-normal/ppc/
AudTransport.o
In file included from /Volumes/Development/SIP_work/
resiprocate-0.9.0-5019/src/rtpsession.h:38,
from /Volumes/Development/SIP_work/resiprocate-0.9.0-5019/
myRTPSession.h:13,
from /Volumes/Development/SIP_work/resiprocate-0.9.0-5019/
RTPSessionBridge.h:14,
from /Volumes/Development/SIP_work/resiprocate-0.9.0-5019/
AudTransport.h:13,
from /Volumes/Development/SIP_work/resiprocate-0.9.0-5019/
AudTransport.m:9:
/Volumes/Development/SIP_work/resiprocate-0.9.0-5019/src/
rtplibraryversion.h:37:18: string: No such file or directory
Why can't it find it? Is there some magic X-Code setting that
allows it to
recognize these kinds of includes? If so, I sure would like to know
what it is.
I'm using X-Code 1.5 by the way.
John
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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