Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
minisynth not building on my mac os
November 2, 2017 - 3:31 pm
Member Since: November 2, 2017
Forum Posts: 3
sp_UserOfflineSmall Offline


I am using mac OS sierra 10.12.6

Xcode 9.1    Build version 9B55      and i have the latest mac os sdk 10.13

So, I opened up the minisynth project in xcode, and try to build it, but i get a Mach-O linker error.

Undefined symbols for architecture x86_64:
"_verify_noerr", referenced from:
_addParamListener in MiniSynthView.o
-[MiniSynthView addListeners] in MiniSynthView.o
-[MiniSynthView removeListeners] in MiniSynthView.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Can someone help me with this? Thanks in advance!


November 2, 2017 - 6:55 pm
Member Since: November 2, 2017
Forum Posts: 3
sp_UserOfflineSmall Offline



I just wanted to share some things I have found out.

In the new xcode 9, the macros have changed. Here is the explanation, which I have found on stack overflow:


For time immemorial, Mac OS X has defined version of most of these macros without the __ prefix, which could collide with similarly named functions or macros in user code, including new functionality in Boost and the C++ standard library.

macOS High Sierra and iOS 11 will now require that clients move to the new macros as defined above.

If you would like to enable the macros for use within your own project, you can define the __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES macro via an Xcode Build Configuration. See "Add a build configuration (xcconfig) file" in Xcode Help.


So instead of enabling the old macro, I just decided to use the new names and manually changed them.

So verify_noerr becomes __Verify_noErr with 2 underscores at the front.

P.S. These errors were found in /Source/CocoaUI/MiniSynthView.m file

and in the synth book, it is chapter 2.45 where it talks about setting up view event listeners

W Pirkle
November 3, 2017 - 9:23 am
Member Since: January 29, 2017
Forum Posts: 573
sp_UserOfflineSmall Offline

Wow - thanks for this update. My new MacBook has XCode 8.3 right now (the latest released version when I bought it). It also looks like this won't be backwards compatible. I will add a note to the Synth Book forum topic.

- Will

Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
6 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Chaes: 51

Skyler: 48

Derek: 46

Frodson: 45

Peter: 43

TheSmile: 43

clau_ste: 39

jim: 34

JimmyM: 33

Gwen: 32

Member Stats:

Guest Posters: 1

Members: 696

Moderators: 1

Admins: 5

Forum Stats:

Groups: 13

Forums: 41

Topics: 757

Posts: 2894

Newest Members:

Jas, Rowan, sojourn, fabhenr, rg1, Niklas, Wutru, Tim Campbell, Danny Jonel, Valentin

Moderators: W Pirkle: 573

Administrators: Tom: 74, JD Young: 80, Will Pirkle: 0, W Pirkle: 573, VariableCook: 3