Skip to content

Instantly share code, notes, and snippets.

@alexandre-janniaux
Created April 17, 2020 08:41
Show Gist options
  • Save alexandre-janniaux/1a14ef242a1a07133e5602d38e80e2f9 to your computer and use it in GitHub Desktop.
Save alexandre-janniaux/1a14ef242a1a07133e5602d38e80e2f9 to your computer and use it in GitHub Desktop.
# 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)
#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