delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/24/04:58:43

From: buers AT gmx DOT de (Dieter Buerssner)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Library problem?
Date: 24 Apr 2000 08:37:18 GMT
Lines: 20
Message-ID: <8e17ru.3vs4d7h.0@buerssner-17104.user.cis.dfn.de>
References: <3900d15d DOT 7050493 AT news DOT telusplanet DOT net> <8dsbvo DOT 3vvpilr DOT 0 AT buerssner-17104 DOT user DOT cis DOT dfn DOT de> <39029b14 DOT 12321442 AT news DOT telusplanet DOT net> <v5d7gsskeub5nsbfn9clt3ukoscq8s2jfj AT 4ax DOT com>
NNTP-Posting-Host: pec-145-229.tnt10.s2.uunet.de (149.225.145.229)
Mime-Version: 1.0
X-Trace: fu-berlin.de 956565438 8913389 149.225.145.229 (16 [17104])
X-Posting-Agent: Hamster/1.3.13.0
User-Agent: Xnews/03.02.04
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Damian Yerrick wrote:

>On Sun, 23 Apr 2000 14:45:08 GMT, kalyniuk AT telusplanet DOT net wrote:
>>I solved my problem but I still don't understand why my program
>>compiled and linked without complaining.
>
>Probably because you forgot to include -Wall in the flags you passed
>to GCC.  -Wall turns on lots of useful warnings.

In the original message kalyniuk AT telusplanet DOT net wrote:

| [...] Now when I use a function from my lib in my
|new project it compiles (-Wall) and links fine. No complaints
|anywhere. 

Probably the prototype in scope didn't match the implementation
in the library.

-- 
Dieter Buerssner

- Raw text -


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