g++ -g -Wall -I /path/to/libuv/include /path/to/libuv.a app.cpp -o app
Created
January 16, 2015 08:53
-
-
Save shovon/af34b7619433242cc9a9 to your computer and use it in GitHub Desktop.
Me practicing compiling stuff. I'm using libuv as target practice.
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> | |
#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