Skip to content

Conversation

@tizee
Copy link

@tizee tizee commented Apr 10, 2024

I've installed LLVM's clang on my machine and it has higher priority than Apple's clang in shell's PATH. When I run make it would produce following errors:

clang src/skhd.c -std=c99 -Wall -g -O0 -framework Cocoa -framework Carbon -framework CoreServices -o bin/skhd
In file included from src/skhd.c:30:
src/service.h:136:9: error: call to undeclared function '_NSGetExecutablePath'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    if (_NSGetExecutablePath(exe_path, &exe_path_size) < 0) {

After I force it to use Apple's clang then the error is gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant