cannot run c compiled programs

iam in the way of making graphics using SDL.i copied from cd usign
mount -a /cdrom
cd /cdrom
cp SDL-1.2.11.tar.gz /usr/test
cd /usr/test
gunzip SDL-1.2.11.tar.gz
tar -xf SDL-1.2.11.tar
cd SDL-1.2.11
./configure
...
...
it stops at
checking whether the c compiler works...configure:error:cannnot run c compiled programs
if you meant to cross com[pile,use --host
see config.log

what to do now?it was working perfectly ..suddenly i dont what happen,please help me

-its in freebsd

Make sure that C-Compiler location is there in PATH.
Also you can try adding "." in your PATH. PATH=$PATH:. ; export PATH

thanks for the reply but it says permission denied.i typed 'su' n tried again
PATH=$PATH;.; -> It says permission denied
Now i came to know that gcc is not creatinge a.out well.when i try to run a.out it says segementation fault(core dumped).what should i do now.help me

You making mistake....
You sure you trying PATH=$PATH:. ; export PATH and NOT PATH=$PATH;. ; export PATH . There is difference of ":" and ";"
If it still not work then...
If you can manage then better you reinstall your O.S. There is high possibality of system curruption either due to Device-failure or it might be some hackers play-ground for now!!!

One lession for you is Be carefull while working in *NIX or BSD world; It is not M$ Windows :slight_smile:

I know the message is very old but just for others looking for a solution....

I ran into this problem too. :-/
In my case it was the way I mounted my sw (software) filesystem.
Using the noexec or user option. The latter also implies noexec. See the manpage of the mount command.

Have a nice day
Ren�