www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/06/03:41:24

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP is not strict enough ???
Date: Wed, 05 Feb 1997 21:00:36 -0800
Organization: Two pounds of chaos and a pinch of salt
Lines: 24
Message-ID: <32F96574.2C36@cs.com>
References: <1997Feb5 DOT 173245 DOT 93344 AT cc DOT usu DOT edu>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp103.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

CHRISTINA wrote:
> 
> Is there anyway I can force djgpp
> to check if I've included the necessary
> libraries? 

Use the '-Wall' switch when you compile, and gcc will give you warnings
about implicit function declarations.  Then, just look up the indicated
function in the libc docs to see what header file it belongs to.  If you
haven't already, you should get the GNU Info documentation reader
(v2gnu/txi390b.zip).

'-Wall' is useful for a great many other things; I HIGHLY recommend that
you use it with every program!  Other good gcc command-line options are
'-O' and '-g'; look these up in the gcc docs to see what they do.  :)

Good luck!

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I |        fighteer AT cs DOT com          |
| Proud owner of what might one   |   http://www.cs.com/fighteer    |
| day be a spectacular MUD...     | Plan: To make Bill Gates suffer |
---------------------------------------------------------------------

- Raw text -


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