diff options
| author | Teddy Wing | 2021-03-07 15:21:42 +0100 |
|---|---|---|
| committer | Teddy Wing | 2021-03-07 15:21:42 +0100 |
| commit | 0f38b2e3925b5d8f8e314db8c68ebbeb272423a5 (patch) | |
| tree | 21f60e2e986c807ed45474ca6ed8757ecfb9bc7e /Invert.m | |
| parent | a0ec0a479163122ba4facef38b8b527229a1b8ca (diff) | |
| download | Re-Good-Catalina-Invert-Colours-0f38b2e3925b5d8f8e314db8c68ebbeb272423a5.tar.bz2 | |
Makefile: Fix link error for `UCKeyTranslate`
The linker complained about `_UCKeyTranslate` being undefined. It's used
by DDHotKey, and is defined in `CoreServices.framework`, so we need to
link CoreServices.
Here's the error I was getting:
clang -x objective-c \
-mmacosx-version-min=10.7 \
-framework Carbon \
-framework Cocoa \
-framework CoreGraphics \
-framework Foundation \
-fno-objc-arc \
-I./build/include \
-L./build \
-lddhotkey \
-o invert-catalina-invert \
Invert.h Invert.m main.m
Undefined symbols for architecture x86_64:
"_UCKeyTranslate", referenced from:
_DDStringFromKeyCode in libddhotkey.a(DDHotKeyUtilities.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Diffstat (limited to 'Invert.m')
0 files changed, 0 insertions, 0 deletions
