Problems compiling JUCE for the MAC


#1

Hi,

I am very new to the MAC and I’m trying to compile JUCE for the MAC but I get the following errors:

juce_Application.h:226: error: expected ‘,’ or ‘…’ before ‘’ token
juce_Application.h:226: error: expected unqualified-id before '
’ token
juce_Application.h:228: error: ISO C++ forbids declaration of ‘parameter’ with no type
juce_Application.h:259: error: expected unqualified-id before ‘’ token
juce_Application.h:259: error: expected ‘,’ or ‘…’ before '
’ token
juce_Application.h:261: error: ISO C++ forbids declaration of ‘parameter’ with no type
juce_mac_CoreMidi.cpp:33: error: cmath: No such file or directory
juce_mac_CoreMidi.cpp:33: error: typeinfo: No such file or directory
juce_mac_CoreMidi.cpp:33: error: stdexcept: No such file or directory
juce_mac_CoreMidi.cpp:33: error: cwchar: No such file or directory
juce_mac_CoreMidi.cpp:33: error: climits: No such file or directory
juce_mac_CoreMidi.cpp:33: error: cstdarg: No such file or directory
juce_mac_CoreMidi.cpp:33: error: cstdlib: No such file or directory
juce_StandardHeader.h:68: error: cstdlib: No such file or directory
juce_StandardHeader.h:69: error: cstdarg: No such file or directory
juce_StandardHeader.h:70: error: climits: No such file or directory
juce_StandardHeader.h:71: error: cmath: No such file or directory
juce_StandardHeader.h:72: error: cwchar: No such file or directory
juce_StandardHeader.h:73: error: stdexcept: No such file or directory
juce_StandardHeader.h:74: error: typeinfo: No such file or directory

It looks like the following lines of juce_StandardHeader.h are causing the errors:

#include
#include
#include
#include
#include
#include
#include

I’m using xcode as the development environment. Do these libraries come with the MAC? How would I go about telling xcode where to fine them?


Philip


#2

sure they come with the mac. It’s the standard C++ library headers…

I think you should change the XCode projects. in my case I removed the xcconfig files which refer the MacOS 10.2 SDK which I don’t have.

And I changed the global project settings to use the MacOS 10.4 SDK (I don’t plan to support < 10.4)

BTW I got a lot of deprecated warnings related to quickdraw.


#3

Thank-you - that did the trick :slight_smile:


#4