[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fix bindir and dlopen tests for C++ compilers (CC=g++).
From: |
Peter O'Gorman |
Subject: |
Re: Fix bindir and dlopen tests for C++ compilers (CC=g++). |
Date: |
Mon, 30 Nov 2009 08:56:56 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Thunderbird/3.0b4 |
On 11/30/2009 12:42 AM, Ralf Wildenhues wrote:
I don't see a warning to that end, my system declares strrchr as
#include<string.h>
char *strrchr(const char *s, int c);
What does yours (darwin?) do instead?
Actually, this was on Fedora 11, gcc-4.4.1, glibc-2.10, which for c++,
declares strrchr and strchr as having the same return type as the first
argument, char* for a char* argument, and const char* for a const char*
argument:
extern "C++"
{
extern char *strrchr (char *__s, int __c)
throw () __asm ("strrchr") __attribute__ ((__pure__))
__attribute__ ((__nonnull__ (1)));
extern __const char *strrchr (__const char *__s, int __c)
throw () __asm ("strrchr") __attribute__ ((__pure__))
__attribute__ ((__nonnull__ (1)));
http://udrepper.livejournal.com/20948.html
Peter
--
Peter O'Gorman
http://pogma.com
- Fix bindir and dlopen tests for C++ compilers (CC=g++)., Ralf Wildenhues, 2009/11/29
- Re: Fix bindir and dlopen tests for C++ compilers (CC=g++)., Peter O'Gorman, 2009/11/29
- Re: Fix bindir and dlopen tests for C++ compilers (CC=g++)., Ralf Wildenhues, 2009/11/30
- Re: Fix bindir and dlopen tests for C++ compilers (CC=g++).,
Peter O'Gorman <=
- Re: Fix bindir and dlopen tests for C++ compilers (CC=g++)., Bob Friesenhahn, 2009/11/30
- Re: Fix bindir and dlopen tests for C++ compilers (CC=g++)., Bob Friesenhahn, 2009/11/30
- Re: Fix bindir and dlopen tests for C++ compilers (CC=g++)., Peter Rosin, 2009/11/30
- Re: Fix bindir and dlopen tests for C++ compilers (CC=g++)., Ralf Wildenhues, 2009/11/30
- Re: Fix bindir and dlopen tests for C++ compilers (CC=g++)., Peter Rosin, 2009/11/30