This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Problem getting G++ to compile with new Linux install
- To: <gcc-help at gcc dot gnu dot org>
- Subject: Problem getting G++ to compile with new Linux install
- From: "Robert Fleming" <robert at vulcanheli dot co dot nz>
- Date: Tue, 20 Feb 2001 18:20:17 +1300
I have just installed Mandrake 7.2, and I am trying to get some programs I
wrote at Uni to work (as well as G++ in general).
Firstly if I try and compile the following program:
#include <iostream.h>
void main()
{
cout<<"hello world\n";
}
I get:
wade@localhost test]$ g++ hello.cc -o hello
/usr/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
[wade@localhost test]$
and trying to compile a much bigger project (sorry about the long post)
results in:
g++ -g -I /usr/X11R6/include/X11 -I/home/wade/SRGP_DISTRIB/include -c
angus3d.c
In file included from /usr/include/X11/Xlib.h:47,
from /home/wade/SRGP_DISTRIB/include/srgppublic.h:3,
from /home/wade/SRGP_DISTRIB/include/srgp.h:17,
from angus3d.c:2:
/usr/include/sys/types.h:123: time.h: No such file or directory
In file included from /usr/include/sys/types.h:195,
from /usr/include/X11/Xlib.h:47,
from /home/wade/SRGP_DISTRIB/include/srgppublic.h:3,
from /home/wade/SRGP_DISTRIB/include/srgp.h:17,
from angus3d.c:2:
/usr/include/sys/select.h:38: time.h: No such file or directory
In file included from /usr/include/pthread.h:20,
from
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/../../../../include/g++-3/stl_al
loc.h:71,
from
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/../../../../include/g++-3/alloc.
h:21,
from
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/../../../../include/g++-3/vector
.h:31,
from matrix.h:5,
from glob.h:4,
from angus3d.c:5:
/usr/include/sched.h:29: time.h: No such file or directory
In file included from
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/../../../../include/g++-3/stl_al
loc.h:71,
from
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/../../../../include/g++-3/alloc.
h:21,
from
/usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/../../../../include/g++-3/vector
.h:31,
from matrix.h:5,
from glob.h:4,
from angus3d.c:5:
/usr/include/pthread.h:21: time.h: No such file or directory
make: *** [angus3d.o] Error 1
but time.h exists in:
/usr/src/linux-2.2.17/include/linux/
/usr/lib/bcc/include/sys/
/usr/lib/bcc/include/
/usr/include/sys/
/usr/include/bits/
/usr/i386-glibc20-linux/include/sys/
Am I doing something majorly wrong here?
Any help on the above would be appreciated.