Created
October 30, 2012 14:22
-
-
Save sankitch/3980433 to your computer and use it in GitHub Desktop.
cygwinにcanythingインストールしようとしたらエラー
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
diff --git a/Makefile b/Makefile | |
index 11529b8..3a29118 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -1,5 +1,5 @@ | |
canything: canything.c | |
- @gcc -Wall -O3 -o $@ $< -lncursesw && echo make canything | |
+ @gcc -Wall -O3 -o $@ $< -lncursesw -L/usr/include/ncursesw -I/usr/include/ncursesw && echo make canything | |
clean: | |
@rm -f canything && echo clean canything | |
test: canything | |
diff --git a/canything.c b/canything.c | |
index ce915ac..52e3140 100644 | |
--- a/canything.c | |
+++ b/canything.c | |
@@ -72,7 +72,7 @@ static void endtty(){ | |
} | |
static void strtolower(const char *src, char *dst){ | |
- char c; | |
+ unsigned char c; | |
while ((c = *src++)) | |
*dst++ = tolower(c); | |
*dst++ = '\0'; |
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
canything.c:5:21: fatal error: ncurses.h: No such file or directory | |
コンパイルが中断されました。 | |
Makefile:2: recipe for target `canything' failed | |
make: *** [canything] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment