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 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? |
Did you look in config.log? What does that say? Is your c compiler on a FAT32 partition or anything odd like that?
|
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. |
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 |
Type in the following simple C program into the file sample.c:
Code:
#include <stdio.h> 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. |