# How to define OTHER\_LDFLAGS in Projucer project?

**URL:** <https://forum.juce.com/t/how-to-define-other-ldflags-in-projucer-project/44836>\
**Category:** General JUCE discussion\
**Created:** [March 6, 2021, 10:42am UTC](https://forum.juce.com/t/how-to-define-other-ldflags-in-projucer-project/44836 "2021-03-06T10:42:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pajczur](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@pajczur](https://forum.juce.com/u/pajczur)\
**Post date:** [March 6, 2021, 10:42am UTC](https://forum.juce.com/t/how-to-define-other-ldflags-in-projucer-project/44836/1 "2021-03-06T10:42:05Z")

</div>

Hello,  
I need to add some items to OTHER\_LDFLAGS in xCode.  
And after I add it in xcodeproj everything is fine. But after I launch the xcodeproj from Projucer everything dissapear.

I tried to open Projucer project in text editor and search anything like OTHER\_LDFLAGS, but found nothing.  
So I always need to remember to edit OTHER\_LDFLAGS by myself anytime I update my Projucer project.

For help great thanks in advance.  
Best Regards

---

<div class="post-metadata">

**Author:** ![pajczur](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@pajczur](https://forum.juce.com/u/pajczur)\
**Post date:** [March 6, 2021, 10:47am UTC](https://forum.juce.com/t/how-to-define-other-ldflags-in-projucer-project/44836/2 "2021-03-06T10:47:21Z")

</div>

I’ve also tried to add items to “custom xcode flags” field in Projucer, but then other default flags disappear, like -lAAXLibrary\_libcpp or -bundle

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [March 6, 2021, 10:53am UTC](https://forum.juce.com/t/how-to-define-other-ldflags-in-projucer-project/44836/3 "2021-03-06T10:53:02Z")

</div>

I think that the “Extra Linker Flags” field in the Xcode exporter settings should do what you want.

---

<div class="post-metadata">

**Author:** ![pajczur](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@pajczur](https://forum.juce.com/u/pajczur)\
**Post date:** [March 6, 2021, 11:17am UTC](https://forum.juce.com/t/how-to-define-other-ldflags-in-projucer-project/44836/4 "2021-03-06T11:17:19Z")

</div>

Hello Reuk,  
thanks for your answer but there isn’t anything like “Extra Linker Flags” in my version of Projucer (JUCE v6.0.7).

As I told before I’ve found field “Custom xCode Flags” and it has something to do with OTHER\_LDFLAGS because when I fill it then I get those values in xCode “Other Linker Flags”. But all other values which by default was before, now disappear.

Maybe I use some wrong command. I fill “Custom xCode Flags” field with exact that command:

```auto
OTHER_LDFLAGS = -Xlinker -headerpad -Xlinker 578

```

But there is some comment that I should use comma separator. So I also tried that:

```auto
OTHER_LDFLAGS = -Xlinker, -headerpad, -Xlinker, 578

```

But it also doesn’t work. So I have no idea how to use it.

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [March 6, 2021, 1:01pm UTC](https://forum.juce.com/t/how-to-define-other-ldflags-in-projucer-project/44836/5 "2021-03-06T13:01:13Z")

</div>

It’s in the settings for the exporter:

 ![Screenshot 2021-03-06 at 12.57.58](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/d/df2f276b8b76ffd893353a82533489348faa3b88.jpeg)

---

<div class="post-metadata">

**Author:** ![pajczur](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@pajczur](https://forum.juce.com/u/pajczur)\
**Post date:** [March 6, 2021, 1:36pm UTC](https://forum.juce.com/t/how-to-define-other-ldflags-in-projucer-project/44836/6 "2021-03-06T13:36:32Z")

</div>

Ahaaaa… Now it works. Great thanks.

But I also used command:  
`-Xlinker -headerpad -Xlinker 578`

because for whole command:  
`OTHER_LDFLAGS = -Xlinker -headerpad -Xlinker 578`

Keyword `OTHER_LDFLAGS` and `=` was treated as arguments.
