Note that there are some explanatory texts on larger screens.

plurals
  1. PODealing with "C compiler cannot create executables" in Cygwin
    primarykey
    data
    text
    <p>Whatever I try to compile in Cygwin I get the following output:</p> <pre> checking for mingw32 environment... no checking for EMX OS/2 environment... no checking how to run the C preprocessor... gcc -E checking for gcc... gcc checking whether the C compiler (gcc ) works... no configure: error: installation or configuration problem: C compiler cannot creat e executables. </pre> <p>The last few lines of the logfile look like this:</p> <pre> configure:2810: checking for EMX OS/2 environment configure:2822: gcc -c conftest.c 1>&5 configure: In function `main': configure:2818: error: `__EMX__' undeclared (first use in this function) configure:2818: error: (Each undeclared identifier is reported only once configure: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 preprocessor configure:2859: gcc -E conftest.c >/dev/null 2>conftest.out configure:2943: checking for gcc configure:3056: checking whether the C compiler (gcc ) works configure: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 -llib collect2: ld returned 1 exit status configure: failed program was: #line 3067 "configure" #include "confdefs.h" main(){return(0);} </pre> <p>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? </p> <p>Update 0: Nick, your link to <a href="http://www.geektimes.com/linux/troubleshooting/c-cant-create-executables.html" rel="nofollow noreferrer">http://www.geektimes.com/linux/troubleshooting/c-cant-create-executables.html</a> was tried already - unfortunately this instructions are for redhat and do not seem to apply to cygwin. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload