Skip to content

Instantly share code, notes, and snippets.

@teruteru128
Created March 3, 2018 06:31
Show Gist options
  • Save teruteru128/05dc14ea2840cebbb3f4d62406856822 to your computer and use it in GitHub Desktop.
Save teruteru128/05dc14ea2840cebbb3f4d62406856822 to your computer and use it in GitHub Desktop.
gcc make error
rm -f ./obj/main.o ./obj/collatz.o ./bin/collatz
gcc -g -Wall -I./include -o obj/main.o -c src/main.c
src/main.c: 関数 ‘main’ 内:
src/main.c:36:14: 警告: 書式内に不明な型変換文字 ‘P’ があります [-Wformat=]
printf("%PRIu64\n", n);
^
src/main.c:36:12: 警告: 書式への引数が多すぎます [-Wformat-extra-args]
printf("%PRIu64\n", n);
^~~~~~~~~~~
src/main.c:38:14: 警告: 書式内に不明な型変換文字 ‘P’ があります [-Wformat=]
printf("%PRIu64, %PRId64, %PRIx64\n", count, count, count);
^
src/main.c:38:23: 警告: 書式内に不明な型変換文字 ‘P’ があります [-Wformat=]
printf("%PRIu64, %PRId64, %PRIx64\n", count, count, count);
^
src/main.c:38:32: 警告: 書式内に不明な型変換文字 ‘P’ があります [-Wformat=]
printf("%PRIu64, %PRId64, %PRIx64\n", count, count, count);
^
src/main.c:38:12: 警告: 書式への引数が多すぎます [-Wformat-extra-args]
printf("%PRIu64, %PRId64, %PRIx64\n", count, count, count);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -g -Wall -I./include -o obj/collatz.o -c src/collatz.c
gcc -o bin/collatz obj/main.o obj/collatz.o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment