Whatever I try to compile in Cygwin I get the following output:
checking for mingw32 environment... nochecking for EMX OS/2 environment... nochecking how to run the C preprocessor... gcc -Echecking for gcc... gccchecking whether the C compiler (gcc ) works... noconfigure: error: installation or configuration problem: C compiler cannot create executables.
The last few lines of the logfile look like this:
configure:2810: checking for EMX OS/2 environmentconfigure:2822: gcc -c conftest.c 1>&5configure: In function `main':configure:2818: error: `__EMX__' undeclared (first use in this function)configure:2818: error: (Each undeclared identifier is reported only onceconfigure:2818: error: for each function it appears in.)configure: failed program was:#line 2815 "configure"#include "confdefs.h"int main() {return __EMX__;; return 0; }configure:2838: checking how to run the C preprocessorconfigure:2859: gcc -E conftest.c >/dev/null 2>conftest.outconfigure:2943: checking for gccconfigure:3056: checking whether the C compiler (gcc ) worksconfigure:3072: gcc -o conftest conftest.c -llib 1>&5/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -llibcollect2: ld returned 1 exit statusconfigure: failed program was:#line 3067 "configure"#include "confdefs.h"main(){return(0);}
This is a fresh Cygwin install with G++ and a bunch of other devtools added. Any idea what I need to do to get this thing working?
Update 0: Nick, your link to http://www.geektimes.com/linux/troubleshooting/c-cant-create-executables.html was tried already - unfortunately this instructions are for redhat and do not seem to apply to cygwin.