delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/22/23:48:10

From: "John M. Aldrich" <fighteer AT cs DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: #include statements necessary?
Date: Sat, 22 Aug 1998 23:41:01 -0400
Organization: Two pounds of chaos and a pinch of salt.
Lines: 27
Message-ID: <35DF8F4D.F8094B9C@cs.net>
References: <6rntn7$fa3$1 AT news12 DOT ispnews DOT com>
NNTP-Posting-Host: ppp108.cs.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Jason, Stacey and Noah Huebel wrote:
> 
> I am very new to using DJGPP, so bear with me.  I am using RHIDE as my
> editor.  Therefore, please pinpoint where the following "problem" may be
> occurring:
> 
> I have been using some example code to learn C.  But I noticed one time that
> when I accidentally left out an #include for string.h (for strlen, etc), the
> program still compiled and ran without error.  So, does RHIDE automatically
> add these #include statements if they are left out?  I noticed similar
> results if I left out stdio.h.

Checking for prototypes isn't RHIDE's job; it's merely a frontend for
the gcc compiler.  What you probably need to do is go to the
Options|Compiler|Warnings menu and check the '-Wall' box.  This will
(among other things) give you warnings when you leave out necessary
header files.

hth!

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | "Always listen to experts.  They'll  |
|       aka Fighteer I       | tell you what can't be done, and why.|
|   mailto:fighteer AT cs DOT net   | Then do it."                         |
| http://www.cs.net/fighteer/|                - Lazarus Long        |
---------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019