Skip to content

Instantly share code, notes, and snippets.

@shovon
Created January 16, 2015 08:53
Show Gist options
  • Save shovon/af34b7619433242cc9a9 to your computer and use it in GitHub Desktop.
Save shovon/af34b7619433242cc9a9 to your computer and use it in GitHub Desktop.
Me practicing compiling stuff. I'm using libuv as target practice.

Compiling

g++ -g -Wall -I /path/to/libuv/include /path/to/libuv.a app.cpp -o app
#include <stdio.h>
#include <uv.h>
int main() {
uv_loop_t *loop = uv_loop_new();
printf("Now quitting.\n");
uv_run(loop, UV_RUN_DEFAULT);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment