Created
April 17, 2020 08:41
-
-
Save alexandre-janniaux/1a14ef242a1a07133e5602d38e80e2f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vlc_apple runs the following command in the xcode-cross container | |
╰─$ vlc_apple clang main.m | |
Undefined symbols for architecture x86_64: | |
"___isOSVersionAtLeast", referenced from: | |
_main in main-cc2b2d.o | |
ld: symbol(s) not found for architecture x86_64 | |
clang-8: error: linker command failed with exit code 1 (use -v to see invocation) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(int argc, char **argv) | |
{ | |
if (@available(macOS 10.14, *)) { | |
printf("Hello world"); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment