# Link problem on MAC

**URL:** <https://forum.juce.com/t/link-problem-on-mac/1279>\
**Category:** MacOSX and iOS\
**Created:** [December 8, 2006, 7:49am UTC](https://forum.juce.com/t/link-problem-on-mac/1279 "2006-12-08T07:49:31Z")\
**Posts on this page:** 5\
**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 8, 2006, 7:49am UTC](https://forum.juce.com/t/link-problem-on-mac/1279/1 "2006-12-08T07:49:31Z")

</div>

Hi,

I’ve created a JUCE project for Windows and it all works ok. I tried compiling it on the MAC but I get the following link error.

`Undefined symbols:
_MIDIClientCreate
_MIDIDeviceGetNumberOfEntities
_MIDIEndpointGetEntity
_MIDIEntityGetDevice
_MIDIGetDestination
_MIDIGetNumberOfDestinations
_MIDIGetNumberOfSources
_MIDIGetSource
_MIDIInputPortCreate
_MIDIObjectFindByUniqueID
_MIDIObjectGetDataProperty
_MIDIObjectGetStringProperty
_MIDIOutputPortCreate
_MIDIPortConnectSource
_MIDIPortDisconnectSource
_MIDIPortDispose
_MIDISend
_kMIDIPropertyConnectionUniqueID
_kMIDIPropertyName
collect2: ld returned 1 exit status
		/usr/bin/ld: Undefined symbols:
		_MIDIClientCreate
		_MIDIDeviceGetNumberOfEntities
		_MIDIEndpointGetEntity
		_MIDIEntityGetDevice
		_MIDIGetDestination
		_MIDIGetNumberOfDestinations
		_MIDIGetNumberOfSources
		_MIDIGetSource
		_MIDIInputPortCreate
		_MIDIObjectFindByUniqueID
		_MIDIObjectGetDataProperty
		_MIDIObjectGetStringProperty
		_MIDIOutputPortCreate
		_MIDIPortConnectSource
		_MIDIPortDisconnectSource
		_MIDIPortDispose
		_MIDISend
		_kMIDIPropertyConnectionUniqueID
		_kMIDIPropertyName
		collect2: ld returned 1 exit status
Build failed for target "juce_application" (1 error, 2 warnings)`

Does anyone know how I would resolve this?[/code]

---

<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:** [December 8, 2006, 9:36am UTC](https://forum.juce.com/t/link-problem-on-mac/1279/2 "2006-12-08T09:36:56Z")

</div>

yeah, the clue is in the word “midi”. Perhaps linking to the CoreMIDI framework might help?

---

<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 8, 2006, 10:03am UTC](https://forum.juce.com/t/link-problem-on-mac/1279/3 "2006-12-08T10:03:29Z")

</div>

I’m a bit of a newbie to the MAC but 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:** [December 8, 2006, 10:37am UTC](https://forum.juce.com/t/link-problem-on-mac/1279/4 "2006-12-08T10:37:11Z")

</div>

Link errors are usually pretty simple to fix - just search for the missing functions and find out which library they’re from.

---

<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/link-problem-on-mac/1279/5 "2017-05-12T09:58:36Z")

</div>

Closed on May 12, 2017, 9:58am UTC


