Created
October 3, 2015 23:12
-
-
Save chrisseaton/fabb8a546c6dcb149add to your computer and use it in GitHub Desktop.
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
$ clang -c -o test test.c -lgmp | |
clang: warning: -lgmp: 'linker' input unused | |
test.c:1:10: fatal error: 'gmp.h' file not found | |
#include <gmp.h> | |
^ | |
1 error generated. | |
$ clang -I/usr/local/include/ -c -o test test.c -lgmp | |
clang: warning: -lgmp: 'linker' input unused | |
test.c:36:3: warning: implicit declaration of function '__gmpz_out_str' is invalid in C99 [-Wimplicit-function-declaration] | |
mpz_out_str(stdout,10,n); | |
^ | |
/usr/local/include/gmp.h:960:21: note: expanded from macro 'mpz_out_str' | |
#define mpz_out_str __gmpz_out_str | |
^ | |
1 warning generated. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment