Cannot compile on Mac

Mac OSX specific forum
5mware
User
User
Posts: 30
Joined: Mon Dec 14, 2015 2:14 pm

Cannot compile on Mac

Post 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?
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Cannot compile on Mac

Post by wilbert »

Does nothing compile or only specific code ?
For me 5.60 compiles fine on Sierra :?
Windows (x64)
Raspberry Pi OS (Arm64)
5mware
User
User
Posts: 30
Joined: Mon Dec 14, 2015 2:14 pm

Re: Cannot compile on Mac

Post 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.
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Cannot compile on Mac

Post 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.
Windows (x64)
Raspberry Pi OS (Arm64)
Post Reply