# Problems compiling JUCE for the MAC

**URL:** <https://forum.juce.com/t/problems-compiling-juce-for-the-mac/1269>\
**Category:** MacOSX and iOS\
**Created:** [December 6, 2006, 7:55am UTC](https://forum.juce.com/t/problems-compiling-juce-for-the-mac/1269 "2006-12-06T07:55:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frodo](https://avatars.discourse-cdn.com/v4/letter/f/ecccb3/32.png) [@Frodo](https://forum.juce.com/u/Frodo)\
**Post date:** [December 6, 2006, 7:55am UTC](https://forum.juce.com/t/problems-compiling-juce-for-the-mac/1269/1 "2006-12-06T07:55:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mdsp](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mdsp](https://forum.juce.com/u/mdsp)\
**Post date:** [December 6, 2006, 9:27am UTC](https://forum.juce.com/t/problems-compiling-juce-for-the-mac/1269/2 "2006-12-06T09:27:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Frodo](https://avatars.discourse-cdn.com/v4/letter/f/ecccb3/32.png) [@Frodo](https://forum.juce.com/u/Frodo)\
**Post date:** [December 7, 2006, 8:51am UTC](https://forum.juce.com/t/problems-compiling-juce-for-the-mac/1269/3 "2006-12-07T08:51:46Z")

</div>

Thank-you - that did the trick 🙂

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 12, 2017, 9:58am UTC](https://forum.juce.com/t/problems-compiling-juce-for-the-mac/1269/4 "2017-05-12T09:58:30Z")

</div>


