* Problem getting G++ to compile with new Linux install
@ 2001-02-19 21:19 Robert Fleming
2001-02-19 23:19 ` Alexandre Oliva
0 siblings, 1 reply; 2+ messages in thread
From: Robert Fleming @ 2001-02-19 21:19 UTC (permalink / raw)
To: gcc-help
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Problem getting G++ to compile with new Linux install
2001-02-19 21:19 Problem getting G++ to compile with new Linux install Robert Fleming
@ 2001-02-19 23:19 ` Alexandre Oliva
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2001-02-19 23:19 UTC (permalink / raw)
To: Robert Fleming; +Cc: gcc-help
On Feb 20, 2001, "Robert Fleming" <robert@vulcanheli.co.nz> wrote:
> wade@localhost test]$ g++ hello.cc -o hello
> /usr/bin/ld: cannot open crt1.o: No such file or directory
This file is generally part of the glibc development package.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-02-19 23:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-19 21:19 Problem getting G++ to compile with new Linux install Robert Fleming
2001-02-19 23:19 ` Alexandre Oliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).