LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   error: C compiler cannot create executables (https://www.linuxquestions.org/questions/linux-software-2/error-c-compiler-cannot-create-executables-187255/)

lopette 05-29-2004 04:39 AM

error: C compiler cannot create executables
 
Hi

I recently installed debian sarge, and since I was having some trouble with tasksel I decided to add all the packages afterwards.

now I'm trying to compile, but I get this error:

Code:

configure: error: C compiler cannot create executables
See `config.log' for more details.

I tried to install about all the compile tools I could think off (gcc, make, automake, autoconf and a few others) but I just can't get it to work.

googleing the error didn't help much, I got a lot of czech and chinese results, but since I can't read these it doesn't help much does it?

Komakino 05-29-2004 06:56 AM

Did you look in config.log? What does that say? Is your c compiler on a FAT32 partition or anything odd like that?

lopette 05-31-2004 04:58 AM

all is "normal"
 
everything is "normal": reiserfs partition, fresh linux install...

config.log doesn't help much, there isn't anything about the compiler itself in it.

I'm kinda lost with this one. but it's gotta be something I'm missing out (like something I should with ap-get), cuz both computers have the same prob. On previous install and when using tasksel, it all worked fine, with same hardware and software config.

lopette 09-10-2004 03:22 PM

fixed
 
I managed to fix this some time ago using tasksel and selecting developping environement or something like that.

I have no clue what packages it really installed, but it worked

btmiller 09-10-2004 04:06 PM

Type in the following simple C program into the file sample.c:

Code:

#include <stdio.h>

int main(void)
{
  puts("If you can see this, I'm running.");
  return 0;
}

then run:

gcc -o sample sample.c

and then try to execute sample:

./sample

If everything works, you'll see the message printed out. If not, take note of the error message(s) you receive and it should help you get a handle on what exactly is causing the problem.

P.S. the format of config.log can be kind of kludgy, you're best off just looking for any warnings or errors within the last 10 lines or so of the log.


All times are GMT -5. The time now is 12:09 AM.