Article View: gnu.gcc.help
Article #46554[Q]: strcmp, strcpy conflicting definitions?
From: Andreas Lehnert
Date: Tue, 08 Nov 1994 03:35
Date: Tue, 08 Nov 1994 03:35
32 lines
1942 bytes
1942 bytes
Hi there--
I'm using version 2.6.0 of the gcc product with the excellent
C matrix macro package Meschach. My problem is this: when I include
the standard Mescach headers, which then include the standard ANSI C
headers, I get a warning like this:
matrix.h: warning: Conflicting types for built-in function strcmp
(it's actually much longer because it contains the path to the standard
gcc library). Here's the odd part--no where in any of the headers or other
code I'm using do I even *mention* strcmp or strcpy. What's odder, those
are the only two warning flags I get.
I took out my ANSI reference and looked up strcmp and strcpy and compared
the reference prototype with the prototype in the library. They checked
out. ANd let me just reiterate: I ripped through *every* file that
might, somehow, wind up included in my programand did a grep strcmp
on it. Nix.
So how can I have conflicting types for a function that only gets
defined once, in a standard header? And why just those two functions?
Thanks for listening.
-Andreas
--
-----------------------------------------------------------------------
Andreas Lehnert awlehner@ellis.uchicago.edu
aarlehn@hilbert.spc.uchicago.edu
Technical Details
Message-ID:
<1994Nov8.033526.17511@midway.uchicago.edu>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uchinews!ellis!awlehnerShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,56a76b6421ae73b1,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-11-07 19:35:26 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uchinews!ellis!awlehner From: awlehner@ellis.uchicago.edu (Andreas Lehnert) Subject: [Q]: strcmp, strcpy conflicting definitions? Message-ID: <1994Nov8.033526.17511@midway.uchicago.edu> Sender: news@uchinews.uchicago.edu (News System) Reply-To: awlehner@midway.uchicago.edu Organization: University of Chicago Date: Tue, 8 Nov 1994 03:35:26 GMT Lines: 32