Re: compiling issues with .m and .cpp combination
Re: compiling issues with .m and .cpp combination
- Subject: Re: compiling issues with .m and .cpp combination
- From: "Arnab Ganguly" <email@hidden>
- Date: Tue, 20 Jan 2009 19:53:33 +0530
Very much appreciated for such a prompt response.
So what would be the workaround?Shall I try converting the .m files to .mm file and try out?Any other modification do I need to do in the project settings?
Thanks
-A
On Tue, Jan 20, 2009 at 7:51 PM, Luca Ciciriello
<email@hidden> wrote:
I don't know the details of your implementation but if you use a mix of objective-c and c++ you can consider the possibility to use objective-c++ using .mm as extension for your file. You cannot use c++ code inside a .m file.
Bye
Luca.
m and .cpp combination
Hi All,
Below I have given the build transcript.I am not able to resolve the error caused by "Wasabi/bfc/platform/platform.h:480:17: error: new.h: No such file or directory"
new.h files are present under the dir /Developer/iphone-installs/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/backward and whenever I try to include platform.h from a main.m file I get the above error.
platform.h where I have the following option for new.h inclusion
#ifdef __cplusplus
#include <new>
#else
#include <new.h>
#endif
When I compile all cpp files there seems to be no issue, but when there is a combination of cpp and .m files I am getting the above issue.
Do I need to change any settings in the project for the inclusion of the above file or any other settings I need to do?
Thanks in advance
-A
Building target "TestPlayer" of project "TestPlayer" with configuration "Debug"
Checking Dependencies
Processing /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug/TestPlayer.app/Contents/Info.plist Info.plist
mkdir /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug/TestPlayer.app/Contents
cd /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo
<com.apple.tools.info-plist-utility> Info.plist -genpkginfo /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug/TestPlayer.app/Contents/PkgInfo -expandbuildsettings -o /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug/TestPlayer.app/Contents/Info.plist
CpResource build/Debug/TestPlayer.app/Contents/Resources/English.lproj/Credits.rtf English.lproj/Credits.rtf
mkdir /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug/TestPlayer.app/Contents/Resources/English.lproj
cd /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo
/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-src-symlinks /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/English.lproj/Credits.rtf /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug/TestPlayer.app/Contents/Resources/English.lproj
CpResource build/Debug/TestPlayer.app/Contents/Resources/English.lproj/MainMenu.nib English.lproj/MainMenu.nib
cd /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo
/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-src-symlinks /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/English.lproj/MainMenu.nib /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug/TestPlayer.app/Contents/Resources/English.lproj
CopyStringsFile /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug/TestPlayer.app/Contents/Resources/English.lproj/InfoPlist.strings English.lproj/InfoPlist.strings
cd /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo
setenv ICONV /usr/bin/iconv
/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings --validate --inputencoding UTF-16 --outputencoding UTF-16 English.lproj/InfoPlist.strings --outdir /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug/TestPlayer.app/Contents/Resources/English.lproj
CpResource build/Debug/TestPlayer.app/Contents/Resources/English.lproj/MovieDocument.nib English.lproj/MovieDocument.nib
cd /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo
/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-src-symlinks /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/English.lproj/MovieDocument.nib /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug/TestPlayer.app/Contents/Resources/English.lproj
CpResource build/Debug/TestPlayer.app/Contents/Resources/English.lproj/testcast.nib English.lproj/testcast.nib
cd /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo
/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-src-symlinks /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/English.lproj/testcast.nib /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug/TestPlayer.app/Contents/Resources/English.lproj
ProcessPCH /var/folders/kc/kcXfxP6MH44eKNWD30SOGE+++TM/-Caches-/com.apple.Xcode.502/SharedPrecompiledHeaders/TestPlayer_Prefix-dfdwtegszemqvsdugpntvnhlioww/TestPlayer_Prefix.pch.gch TestPlayer_Prefix.pch normal i386 objective-c com.apple.compilers.gcc.4_0
cd /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo
/Developer/usr/bin/gcc-4.0 -x objective-c-header -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/MacOSX10.5.sdk -mfix-and-continue -mmacosx-version-min=10.5 -gdwarf-2 -I/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/TestPlayer.build/Debug/TestPlayer.build/TestPlayer.hmap -F/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug -I/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug/include -IWasabi -I/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/TestPlayer.build/Debug/TestPlayer.build/DerivedSources -c /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/TestPlayer_Prefix.pch -o /var/folders/kc/kcXfxP6MH44eKNWD30SOGE+++TM/-Caches-/com.apple.Xcode.502/SharedPrecompiledHeaders/TestPlayer_Prefix-dfdwtegszemqvsdugpntvnhlioww/TestPlayer_Prefix.pch.gch
ProcessPCH++ /var/folders/kc/kcXfxP6MH44eKNWD30SOGE+++TM/-Caches-/com.apple.Xcode.502/SharedPrecompiledHeaders/TestPlayer_Prefix-cafqhctgsugdxedftmcnwcmrjfaf/TestPlayer_Prefix.pch.gch TestPlayer_Prefix.pch normal i386 c++ com.apple.compilers.gcc.4_0
cd /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo
/Developer/usr/bin/gcc-4.0 -x c++-header -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/MacOSX10.5.sdk -mfix-and-continue -fvisibility-inlines-hidden -mmacosx-version-min=10.5 -gdwarf-2 -I/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/TestPlayer.build/Debug/TestPlayer.build/TestPlayer.hmap -F/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug -I/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug/include -IWasabi -I/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/TestPlayer.build/Debug/TestPlayer.build/DerivedSources -c /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/TestPlayer_Prefix.pch -o /var/folders/kc/kcXfxP6MH44eKNWD30SOGE+++TM/-Caches-/com.apple.Xcode.502/SharedPrecompiledHeaders/TestPlayer_Prefix-cafqhctgsugdxedftmcnwcmrjfaf/TestPlayer_Prefix.pch.gch
CompileC build/TestPlayer.build/Debug/TestPlayer.build/Objects-normal/i386/MovieDocument.o /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/MovieDocument.m normal i386 objective-c com.apple.compilers.gcc.4_0
cd /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo
/Developer/usr/bin/gcc-4.0 -x objective-c -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/MacOSX10.5.sdk -mfix-and-continue -mmacosx-version-min=10.5 -gdwarf-2 -I/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/TestPlayer.build/Debug/TestPlayer.build/TestPlayer.hmap -F/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug -I/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug/include -IWasabi -I/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/TestPlayer.build/Debug/TestPlayer.build/DerivedSources -include /var/folders/kc/kcXfxP6MH44eKNWD30SOGE+++TM/-Caches-/com.apple.Xcode.502/SharedPrecompiledHeaders/TestPlayer_Prefix-dfdwtegszemqvsdugpntvnhlioww/TestPlayer_Prefix.pch -c /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/MovieDocument.m -o /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/TestPlayer.build/Debug/TestPlayer.build/Objects-normal/i386/MovieDocument.o
/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/MovieDocument.m: In function '-[MovieDocument readFromFile:ofType:]':
/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/MovieDocument.m:149: warning: 'QTMovie' may not respond to '+movieWithFile:'
/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/MovieDocument.m:149: warning: (Messages without a matching method signature
/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/MovieDocument.m:149: warning: will be assumed to return 'id' and accept
/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/MovieDocument.m:149: warning: '...' as arguments.)
/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/MovieDocument.m: At top level:
/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/MovieDocument.m:243: warning: incomplete implementation of class 'MovieDocument'
/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/MovieDocument.m:243: warning: method definition for '-createMovieDocumentWithFile:asData:' not found
CompileC build/TestPlayer.build/Debug/TestPlayer.build/Objects-normal/i386/main.o /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/main.m normal i386 objective-c com.apple.compilers.gcc.4_0
cd /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo
/Developer/usr/bin/gcc-4.0 -x objective-c -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/MacOSX10.5.sdk -mfix-and-continue -mmacosx-version-min=10.5 -gdwarf-2 -I/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/TestPlayer.build/Debug/TestPlayer.build/TestPlayer.hmap -F/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug -I/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/Debug/include -IWasabi -I/Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/TestPlayer.build/Debug/TestPlayer.build/DerivedSources -include /var/folders/kc/kcXfxP6MH44eKNWD30SOGE+++TM/-Caches-/com.apple.Xcode.502/SharedPrecompiledHeaders/TestPlayer_Prefix-dfdwtegszemqvsdugpntvnhlioww/TestPlayer_Prefix.pch -c /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/main.m -o /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/build/TestPlayer.build/Debug/TestPlayer.build/Objects-normal/i386/main.o
In file included from Wasabi/bfc/platform/guid.h:5,
from Wasabi/bfc/Dispatch.h:6,
from /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/svc_testcast_decoder.h:10,
from /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/http_aac.h:18,
from /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/main.m:12:
Wasabi/bfc/platform/platform.h:480:17: error: new.h: No such file or directory
In file included from /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/svc_testcast_decoder.h:10,
from /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/http_aac.h:18,
from /Users/bdcuser/arnab/testcast/testcast-code/Test/Try/Dev/TestPlayer-withTest_Logo/main.m:12:
Wasabi/bfc/Dispatch.h:15: error: syntax error before 'DispatchableCallback'
What can you do with the new Windows Live?
Find out
_______________________________________________
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