Skip to content

Instantly share code, notes, and snippets.

@sankitch
Created October 30, 2012 14:22
Show Gist options
  • Save sankitch/3980433 to your computer and use it in GitHub Desktop.
Save sankitch/3980433 to your computer and use it in GitHub Desktop.
cygwinにcanythingインストールしようとしたらエラー
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';
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