Page 1 of 1

Cannot compile on Mac

Posted: Mon Jul 10, 2017 8:38 pm
by 5mware
hi guys,

both mountain lion and macOS sierra.

on both i have pb5.60 in x86 and x64 releases. the x86 release compiles perfectly without any problems.

x64 cannot compile.

i get a linker error:

Undefined symbols for architecture x86_64:
"_KLGetCurrentKeyboardLayout", referenced from:
_EndIf1 in purebasic.o
PStub_KLGetCurrentKeyboardLayout in purebasic.o
"_KLGetKeyboardLayoutProperty", referenced from:
_EndIf1 in purebasic.o
PStub_KLGetKeyboardLayoutProperty in purebasic.o
...
clang: error: linker command failed with exit code 1
(use -v to see invocation)

has anyone an idea?

Re: Cannot compile on Mac

Posted: Tue Jul 11, 2017 7:03 am
by wilbert
Does nothing compile or only specific code ?
For me 5.60 compiles fine on Sierra :?

Re: Cannot compile on Mac

Posted: Tue Jul 11, 2017 9:15 am
by 5mware
no basically simple stuff like opening an empty window will fail, nothing works.

the newest release of xcode is installed on sierra.

i have no idea what to do.

Re: Cannot compile on Mac

Posted: Tue Jul 11, 2017 9:42 am
by wilbert
I have no clue what could be causing it.
I'm using macOS Sierra 10.12.5 with XCode 8.3.3 .

Maybe Fred can investigate it.
It looks like both KLGetCurrentKeyboardLayout and KLGetKeyboardLayoutProperty are deprecated since OSX 10.5.