Created
October 28, 2014 15:44
-
-
Save saw/22b4835bd174d7a93b6f to your computer and use it in GitHub Desktop.
Does not compile!
This file contains hidden or 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[]) | |
{ | |
puts("hello"); | |
return 1; | |
} | |
/* | |
output: | |
$ clang test.c | |
Undefined symbols for architecture x86_64: | |
"_main", referenced from: | |
implicit entry/start for main executable | |
ld: symbol(s) not found for architecture x86_64 | |
clang: error: linker command failed with exit code 1 (use -v to see invocation) | |
*/ |
Author
saw
commented
Oct 28, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment