www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/06/16:20:26

From: kurt DOT skauen AT funcom DOT com (Kurt Skauen)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP is not strict enough ???
Date: Thu, 06 Feb 1997 15:34:22 GMT
Organization: Funcom production A/S
Lines: 28
Message-ID: <855243202.949118@araga.funcom.com>
References: <1997Feb5 DOT 173245 DOT 93344 AT cc DOT usu DOT edu>
Reply-To: kurt DOT skauen AT funcom DOT com
NNTP-Posting-Host: araga.funcom.com
Cache-Post-Path: araga.funcom.com!unknown AT pcshare44 DOT funcom DOT com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

slsyj AT cc DOT usu DOT edu (CHRISTINA) wrote:

>I am a beginning C++ programmer and I just
>started to use djgpp. Now, I have one tiny
>problem. Is there anyway I can force djgpp
>to check if I've included the necessary
>libraries? The problem is that the person
>who grades my homework uses Borland C++ (don't
>mean to continue the flame war here) so if
>I use an exit statement in my program, Borland's
>compiler will protest whereas dgjpp compiles and
>runs just fine. Still, the grader will dock
>points for a program that does not compile
>without him adding #include <stdlib.h>.

If you miss som libraries the linker will complain about unresolved
references when building the executable. What you are missing is only
the header file declaring proto-types for the functions in a library.

Use -Wall when compiling. This will generate a warning if you call a
function not declared by a proto-type.


Kurt. 	Programmer Funcom/R&D
The above expressions is not ment to represent Funcom.



- Raw text -


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