Avatar

Please consider registering
Guest

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 sp_TopicIcon
minisynth not building on my mac os
No permission to create posts
November 2, 2017
3:31 pm
Avatar
mguy
Member
Members
Forum Posts: 3
Member Since:
November 2, 2017
sp_UserOfflineSmall Offline

Hi,

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!

M.Guy

November 2, 2017
6:55 pm
Avatar
mguy
Member
Members
Forum Posts: 3
Member Since:
November 2, 2017
sp_UserOfflineSmall Offline

Update

Hi,

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

November 3, 2017
9:23 am
Avatar
W Pirkle
Admin
Forum Posts: 140
Member Since:
January 28, 2017
sp_UserOnlineSmall Online

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: 36

Currently Online: W Pirkle
3 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 47

Derek: 41

Peter: 41

clau_ste: 39

Frodson: 38

Gwen: 32

EZB: 24

lppier: 23

Msaldaña: 18

Jorge: 17

Member Stats:

Guest Posters: 1

Members: 478

Moderators: 1

Admins: 4

Forum Stats:

Groups: 11

Forums: 29

Topics: 479

Posts: 1870

Newest Members:

certvalue111, sobhana s, sam, annaharris, Marie Weaver, kev, Steven, Mr Anderson, mguy, omelc

Moderators: W Pirkle: 140

Administrators: Tom: 65, JD Young: 80, Will Pirkle: 0, W Pirkle: 140