Created
January 29, 2014 07:11
-
-
Save mmcdaris/8683218 to your computer and use it in GitHub Desktop.
Hello world reversed?
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
➜ C cc -o hello hello.c | |
➜ C ls -la | |
total 40 | |
drwxr-xr-x+ 5 mmcdaris staff 170 Jan 28 23:06 . | |
drwxr-xr-x+ 108 mmcdaris staff 3672 Jan 28 14:57 .. | |
-rw-r--r--+ 1 mmcdaris staff 78 Jan 28 22:38 Makefile | |
-rwxr-xr-x+ 1 mmcdaris staff 8496 Jan 28 23:06 hello | |
-rw-r--r--+ 1 mmcdaris staff 60 Jan 28 22:40 hello.c | |
➜ C ./hello | |
Hello, world. | |
➜ C pkg-config | |
Must specify package names on the command line | |
➜ C cc pkg-config --cflags --libs libxml-2.0 | |
clang: error: unsupported option '--cflags' | |
clang: error: unsupported option '--libs' | |
clang: error: no such file or directory: 'pkg-config' | |
clang: error: no such file or directory: 'libxml-2.0' | |
clang: error: no input files | |
➜ C cc pkg-config --cflags --libs libxml-2.0 -o hello hello.c | |
clang: error: unsupported option '--cflags' | |
clang: error: unsupported option '--libs' | |
clang: error: no such file or directory: 'pkg-config' | |
clang: error: no such file or directory: 'libxml-2.0' | |
➜ C cc `pkg-config --cflags --libs libxml-2.0` -o hello hello.c | |
➜ C hello | |
.dlroW olleH | |
➜ C hello | |
.dlroW olleH | |
➜ C vim hello | |
➜ C vim hello.c | |
➜ C cc -o hello hello.c | |
➜ C hello | |
.dlroW olleH | |
➜ C cc `pkg-config --cflags --libs libxml-2.0` -o hello hello.c | |
➜ C | |
➜ C hello | |
.dlroW olleH | |
➜ C hello | |
.dlroW olleH | |
➜ C hello | |
.dlroW olleH | |
➜ C echo hello | |
hello | |
➜ C cat hello.c | |
#include <stdio.h> | |
int main(){ printf("Hello, world.\n"); } | |
➜ C |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment