Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!psuvax1!rutgers!njin!princeton!phoenix!subbarao From: subbarao@phoenix.Princeton.EDU (Kartik Subbarao) Newsgroups: comp.unix.internals Subject: Re: Using sdtlib.h on a Sun system Message-ID: <2984@idunno.Princeton.EDU> Date: 1 Oct 90 21:58:18 GMT References: <1990Sep30.152249.15810@fmrco> Sender: news@idunno.Princeton.EDU Lines: 28 In article <1990Sep30.152249.15810@fmrco> sy13220@fmrco (Richard J. Niziak) writes: >I am fairly new to 'C' and am trying to complie a simple intro >program on my Sun 4/370. I use two include headers, stdio.h and stdlib.h >And when the complie goes through, it cannot find stdlib.h. >I have the entries in the program like this: >#include >#include >Very confused.... >Please help. stdlib.h is an ANSI Cism. You can only use ANSI C if you have an ANSI C compiler (such as gcc). Once you are sure that your compiler indeed is an ANSI C compiler, you might want to take a look at /usr/include (or whatever is defined as the default include directory on your system) and see whether stdlib.h exists. If not, then you probably have to look at the compiler and see if it put the .h files anywhere else. If you are still confused, your best bet then is to contact your sysadmin about it... -Kartik (I need a new .signature -- any suggestions?) subbarao@{phoenix or gauguin}.Princeton.EDU -|Internet kartik@silvertone.Princeton.EDU (NeXT mail) -| SUBBARAO@PUCC.BITNET - Bitnet