Compilation Error with StandardLibrary in XCode
Compilation Error with StandardLibrary in XCode
- Subject: Compilation Error with StandardLibrary in XCode
- From: Alex Flecher <email@hidden>
- Date: Sat, 18 Jun 2011 19:08:53 +0530
Hi,
I am working on a kext based on SoundFlower and have used the source from
http:[//]anonymous@soundflower [dot] googlecode [dot] com[/]svn
However i am not able to use the standard c++ library. The compiler throws error
#include<iostream> gives error-> iostream: no such file or directory.
However if i create a new c++ based project from template, it works fine.
i have selected compile source as c++ also and the build results log shows
gcc-4.0 -x c++ also. still the <iostream> is not accessible.
here is Build Result that i get:
CompileC build/Soundflower.build/Development/SoundflowerDriver.build/Objects-normal/i386/SoundflowerEngine.o
/Users/alexflecher/svnrepos/soundflower_svn/Source/SoundflowerEngine.cpp
normal i386 c++ com.apple.compilers.gcc.4_0
cd /Users/alexflecher/svnrepos/soundflower_svn/Source
/Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -fmessage-length=0
-pipe -nostdinc -fno-builtin -Wno-trigraphs -fno-exceptions -fno-rtti
-fcheck-new -fasm-blocks -force_cpusubtype_ALL -static -msoft-float
-O0 -fno-common -mkernel -finline -fno-keep-inline-functions -DDEBUG
-DKERNEL -DKERNEL_PRIVATE -DDRIVER_PRIVATE -DAPPLE -DNeXT -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -fapple-kext -mfix-and-continue
-mmacosx-version-min=10.4 -gdwarf-2
-I/Users/alexflecher/svnrepos/soundflower_svn/Source/build/Soundflower.build/Development/SoundflowerDriver.build/Soundflower.hmap
-Wmost -Wno-four-char-constants -Wno-unknown-pragmas
-F/Users/alexflecher/svnrepos/soundflower_svn/Source/build/Development
-I/Users/alexflecher/svnrepos/soundflower_svn/Source/build/Development/include
-I/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/backward
-I/System/Library/Frameworks/Kernel.framework/PrivateHeaders
-I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Kernel.framework/Headers
-I/Users/alexflecher/svnrepos/soundflower_svn/Source/build/Soundflower.build/Development/SoundflowerDriver.build/DerivedSources/i386
-I/Users/alexflecher/svnrepos/soundflower_svn/Source/build/Soundflower.build/Development/SoundflowerDriver.build/DerivedSources
-c /Users/alexflecher/svnrepos/soundflower_svn/Source/SoundflowerEngine.cpp
-o /Users/alexflecher/svnrepos/soundflower_svn/Source/build/Soundflower.build/Development/SoundflowerDriver.build/Objects-normal/i386/SoundflowerEngine.o
/Users/alexflecher/svnrepos/soundflower_svn/Source/SoundflowerEngine.cpp:22:20:
error: iostream: No such file or directory
Can anybody tell why is XCode showing the error? cant we use libstd for kexts?
Thanks
Alex
_______________________________________________
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