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-146914/)

shams 02-16-2004 07:16 PM

error: C compiler cannot create executables
 
hi everyone,
I want to configure the alsa driver for installation with the cmmmand "./configure" the output is:
checking for gcc ...gcc
cheking for C compiler defualt output file name ...configure:error:C
compiler cannot create executables.
see 'config.log'for more details
Then i tried to install alsa-utils-1.0.2 the output is:
checking for BSD compatable install ...usr/bin/ginstall.c
chekking whether make build enviroment is sane ...yes
checking for gawk...gawk
checking whether make sets $(MAKE) ...yes
checking for gcc .../usr/bin/gcc
checking for C compiler defualt output file name ...configure:error:c
compiler cannot create executables.
see 'config.log'for more details.
Also whenever i want to cofigure any software for isntallation wich i need to do,this is the error message "error:C compiler cannot create executables".
plz help me what i can do to solve these problems.

jtshaw 02-16-2004 07:23 PM

Code:

#include <stdio.h>

int main(void)
{
  printf("Hello World\n");
  return 0;
}

Make a text file called helloworld.c with the above code. Type gcc helloworld.c. There should be no output. Now you should have a file called a.out in that directory and if you do a ./a.out it should say "Hello World" on the console. Does this work?


All times are GMT -5. The time now is 10:42 AM.