Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wanted to have a fish shell under my cygwin instance and I wanted it so bad that I've event tried to build it but with no luck.

I've gone through all the prerequisites like installing autoconf, clang, ncurses and other needed stuff.

autoconf and ./configure went all good, but when I try make, the code won't compile.

I've seen that there is another thread on this but it's for the older version 1.23.

So did anyone get this up and running?

Here's the errors from my build:

g++ -g -O2 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fno-exceptions -Wall -DLOCALEDIR=\"/usr/local/share/locale\" -DPREFIX=L\"/usr/local\" -DDATADIR=L\"/usr/local/share\" -DSYSCONFDIR=L\"/usr/local/etc\" -DBINDIR=L\"/usr/local/bin\"    -c -o builtin.o builtin.cpp
In file included from builtin_set_color.cpp:13:0,
             from builtin.cpp:397:
fallback.h:97:7: error: previous declaration of ‘char* tparm_solaris_kludge(char*, ...)’ with ‘C++’ linkage
/usr/include/ncurses.h:820:63: error: conflicts with new declaration with ‘C’ linkage
<builtin>: recipe for target `builtin.o' failed
make: *** [builtin.o] Error 
share|improve this question
what version of windows are you on? Which version of cygwin are you using? – user273580 Jun 13 '13 at 13:06
This is an interesting question, the instructions provided below did not work whilst attempting to compile on a cygwin instance. Can we get a comprehensive list of steps and dependencies that are needed to make this work and move through the entire process? – ylluminate Jun 15 '13 at 23:22

@Yaakov's proposal is actually quite close, but to compile fish 2.0 successfully you would need to comment/remove offending line from fallback.h and invoke configuration with:

./configure CXXFLAGS='-I/usr/include -I/usr/include/ncursesw'

after which you should be able to make and make install

share|improve this answer

You got a false negative in a configure test because <term.h> was not found; you need to pass CPPFLAGS=-I/usr/include/ncurses as an argument to configure to get this to work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.