I have this line of code:
GetVolParmsInfoBuffer volumeParms;
HParamBlockRec pb;
And I included this header:
#include </System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h>
But still the compiler throws the error that HParamBlockRec
is unknown type.
In a other project with the same files everything works fine, even without including the Files.h
header.
Is there anything I'm missing?
Update I was able to fix the error by setting the architecture to 32-Bit.
But now I'm getting this build error:
error: -fobjc-arc is not supported with fragile abi
I searched a little and it's been sait that switching to the LLVM GGC 4.2 compiler would help, but it doesn't.
Right now my build settings are:
- 32-bit Intel
- Mac OSX 10.7 SDK
- Build active architecture only Yes
- Mach-O Type is set to Dynamic Library
I'm very unfimiliar with coding in XCode. So it would be great if you could help me out here.