# Adding compiler flags

**URL:** <https://forum.juce.com/t/adding-compiler-flags/13321>\
**Category:** The Projucer\
**Created:** [August 7, 2014, 10:45pm UTC](https://forum.juce.com/t/adding-compiler-flags/13321 "2014-08-07T22:45:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![itwasntpete](https://avatars.discourse-cdn.com/v4/letter/i/a8b319/32.png) [@itwasntpete](https://forum.juce.com/u/itwasntpete)\
**Post date:** [August 7, 2014, 10:45pm UTC](https://forum.juce.com/t/adding-compiler-flags/13321/1 "2014-08-07T22:45:57Z")

</div>

how do i add compiler flags in the introjucer?

i can't find any option to add a specific compiler flag for a makefile project. how to do that?

cheers pete

---

<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:** [August 8, 2014, 7:46am UTC](https://forum.juce.com/t/adding-compiler-flags/13321/2 "2014-08-08T07:46:03Z")

</div>

Are you talking about a linux build? If so, there's a section called "extra compiler flags"!

---

<div class="post-metadata">

**Author:** ![nicolasdanet](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nicolasdanet/32/56_2.png) [@nicolasdanet](https://forum.juce.com/u/nicolasdanet)\
**Post date:** [August 8, 2014, 8:18am UTC](https://forum.juce.com/t/adding-compiler-flags/13321/3 "2014-08-08T08:18:36Z")

</div>

For instance (on Mac OS / Xcode) i have an Introjucer project with those sections:

1.&nbsp;"Extra compiler flags"

```
-Wall
-Wno-four-char-constants 
-Wno-unknown-pragmas
-Wshadow
-Wshorten-64-to-32
```

2. "Extra linker flags"

```
-F${C74SUPPORT}/max-includes
-framework MaxAPI
-bind_at_load
```

3. "Custom Xcode flags"

```
GCC_VERSION=4.2, WRAPPER_EXTENSION = mxo, GENERATE_PKGINFO_FILE = YES, GCC_SYMBOLS_PRIVATE_EXTERN = YES, PRODUCT_VERSION = 5.1.7, ARCHS = i386, DEPLOYMENT_LOCATION = YES, INSTALL_PATH = /, DSTROOT = "$(SRCROOT)/../../../../../sdk-build", DEPLOYMENT_POSTPROCESSING = YES, STRIP_INSTALLED_PRODUCT = YES, GCC_GENERATE_DEBUGGING_SYMBOLS = YES, GCC_DEBUGGING_SYMBOLS = full, DEAD_CODE_STRIPPING = YES, DEBUG_INFORMATION_FORMAT = dwarf-with-dsym, DWARF_DSYM_FILE_NAME = "$(PRODUCT_NAME).dSYM", DWARF_DSYM_FOLDER_PATH = "$(CONFIGURATION_BUILD_DIR)/$(EXECUTABLE_FOLDER_PATH)"
```

---

<div class="post-metadata">

**Author:** ![itwasntpete](https://avatars.discourse-cdn.com/v4/letter/i/a8b319/32.png) [@itwasntpete](https://forum.juce.com/u/itwasntpete)\
**Post date:** [August 8, 2014, 5:38pm UTC](https://forum.juce.com/t/adding-compiler-flags/13321/4 "2014-08-08T17:38:17Z")

</div>

i'm sorry, i'm new to juce, so please be gently with my possibly stupid question... but what "extra compiler flags" section do you mean? in the introjucer? please see attachment.

&nbsp;

---

<div class="post-metadata">

**Author:** ![nicolasdanet](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nicolasdanet/32/56_2.png) [@nicolasdanet](https://forum.juce.com/u/nicolasdanet)\
**Post date:** [August 8, 2014, 6:06pm UTC](https://forum.juce.com/t/adding-compiler-flags/13321/5 "2014-08-08T18:06:00Z")

</div>

Nope, here...

(Note that&nbsp;i'm on Mac OS X).
