Re: gcc: "cannot create executables" (confused now)
(BTW, I'm assuming you don't know how to program)
Try pasting the following into a file (call it foo.c) and then run
the command:
$ gcc foo.c
$ ./a.out
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* this is the text to put in a file */
#include <stdio.h>
int
main( int argc , char** argv )
{
printf( "Hello World.\n" ) ;
return 0 ;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If that works (doesn't give any errors, prints Hello World), then your
C compiler is working. Try the command
$ rm a.out
$ g++ foo.c++
$ ./a.out
with the following in the file "foo.c++"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// include this text in foo.c++
#include <iostream>
int
main( int argc , char** argv )
{
cout << "Hello World from C++." << endl ;
return 0 ;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If that works (again, no errors, prints Hello World from C++), then
your C++ compiler is working.
If either of those don't work, report the file contents (in case a
typo was made) and the error messages (with the shell commands, of
course) to the list.
HTH,
-D
PS. Say, do you have write permission on the directory you are
running configure in? Is the disk full?
Reply to: