Article View: aus.computers.linux
Article #57772Re: error include files why?
From: Peter Rye
Date: Mon, 02 Sep 1996 00:00
Date: Mon, 02 Sep 1996 00:00
36 lines
2010 bytes
2010 bytes
>>>>> "DAVID" == DAVID TECK CHEE LEONG <dezhi@deakin.edu.au> writes:
DAVID> I am came across this error when compiling.In paticular
DAVID> using the header file math.h. I also use the cc -lm option,
DAVID> still it doesn't work. I noticed that the header files are
DAVID> also in /usr/include. Please help , I am using linux
DAVID> slackware 3.0. When I use a friend's turbo c, no problem!
DAVID> /* Try to link it using -lm */ apollo:~$ cc tt.c -lm In
DAVID> file included from /usr/include/endian.h:34, from
DAVID> /usr/include/huge_val.h:27, from /usr/include/math.h:293,
DAVID> from tt.c:2: /usr/include/bytesex.h:6: linux/version.h: No
DAVID> such file or directory apollo:~$
You've probably lost some of these as well.
ub239:/usr/include$ find . -type l -printf "%f\t\t\t%l\n"
asm /usr/src/linux/include/asm-i386
linux /usr/src/linux/include/linux
X11 ../X11R6/include/X11
scsi /usr/src/linux/include/scsi
ncurses.h ncurses/curses.h
I suspect you deleted your kernel source after compiling your kernel.
The directory /usr/include/linux is a symbolic link to
/usr/src/linux/include/linux.
You'll need to reinstall your kernel source "include" directory.
--
Peter Rye prye@cyllene.uwa.edu.au, prye@ichr.uwa.edu.au
Respiratory Research Fellow, Princess Margaret Hospital for Children
Perth, Western Australia Ph: +61 (09) 340 8985, Fax: +61 (09) 388 2097
** Smoking areas in restaurants are like peeing areas in swimming pools. **
Technical Details
Message-ID:
<m3ybitjbzl.fsf@ub239.dialup.uwa.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<50ai46$ncg@miranda.its.deakin.edu.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,cc0f1779b33fb62c X-Google-Attributes: gid102983,public From: prye@cyllene.uwa.edu.au (Peter Rye) Subject: Re: error include files why? Date: 1996/09/02 Message-ID: <m3ybitjbzl.fsf@ub239.dialup.uwa.edu.au> X-Deja-AN: 178002860 sender: prye@ub239.dialup.uwa.edu.au references: <50ai46$ncg@miranda.its.deakin.edu.au> organization: The University of Western Australia newsgroups: aus.computers.linux