Article View: aus.computers.linux
Article #57752error include files why?
From: DAVID TECK CHEE LEONG
Date: Sat, 31 Aug 1996 00:00
Date: Sat, 31 Aug 1996 00:00
82 lines
2012 bytes
2012 bytes
I am came across this error when compiling.In paticular using the header file math.h. I also use the cc -lm option, still it doesn't work. I noticed that the header files are also in /usr/include.
Please help , I am using linux slackware 3.0. When I use a friend's turbo c, no problem!
email appreciated : dezhi@deakin.edu.au or david_leong@ferntree.com.au
/* This is the program that is having problem */
/* The error appears when I include <math.h> header file */
#include <stdio.h>
#include <math.h>
main()
{
int i;
i = pow(4,4);
printf("This is it %d", i);
}
Script started on Wed Aug 21 20:01:44 1996
/* Compile tt.c with errors */
apollo:~$ cc tt.c
/* THIS IS THE ERROR MESSAGE */
In file included from /usr/include/endian.h:34,
from /usr/include/huge_val.h:27,
from /usr/include/math.h:293,
from tt.c:2:
/usr/include/bytesex.h:6: linux/version.h: No such file or directory
/* Try to link it using -lm */
apollo:~$ cc tt.c -lm
In file included from /usr/include/endian.h:34,
from /usr/include/huge_val.h:27,
from /usr/include/math.h:293,
from tt.c:2:
/usr/include/bytesex.h:6: linux/version.h: No such file or directory
apollo:~$
--
########
/ ^ ^ \
| O () O |
____oOo_\__[]__/_oO0Oo_______________
David Dezhi Leong
System Administrator
State Revenue Office Victoria
Melbourne
dezhi@deakin.edu.au
______________________________________
Technical Details
Message-ID:
<50ai46$ncg@miranda.its.deakin.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,cc0f1779b33fb62c,start X-Google-Attributes: gid102983,public From: dezhi@deakin.edu.au (DAVID TECK CHEE LEONG) Subject: error include files why? Date: 1996/08/31 Message-ID: <50ai46$ncg@miranda.its.deakin.edu.au> X-Deja-AN: 177888018 organization: School of Computing & Mathematics - Deakin University newsgroups: aus.computers.linux