I've changed the implementation of basename() in replace/ to return
const char*. [rev. 8313]
-rtv
On Mon, Oct 19, 2009 at 9:39 PM, Carlos Jaramillo <ubuntuslave@...> wrote:
> Thanks, this worked!
>
> On Mon, Oct 19, 2009 at 7:47 AM, Michael Bienia <michael@...> wrote:
>>
>> On 2009-10-18 21:51:16 -0400, Carlos Jaramillo wrote:
>> > When trying to compile Stage (latest svn trunk), I get the following
>> > error:
>> >
>> > stage/replace/replace.h:94: error: new declaration ‘char* basename(const
>> > char*)’
>> > /usr/include/string.h:601: error: ambiguates old declaration ‘const
>> > char*
>> > basename(const char*)’
>> > make[2]: *** [libstage/CMakeFiles/stage.dir/worldfile.o] Error 1
>> > make[1]: *** [libstage/CMakeFiles/stage.dir/all] Error 2
>> > make: *** [all] Error 2
>> >
>> > By the way, I'm using Ubuntu 9.10 (beta), so I wonder if anything has to
>> > do
>> > with this. Perhaps, it's gcc-4.4 that's causing this problem.
>> > gcc-3 is an obsolete package now in this latest release of ubuntu.
>>
>> Yes, it has do with using Ubuntu 9.10 as it uses g++ 4.4 and eglibc
>> 2.10. In this combination some functions return now a const char* when
>> passed a const char* (formerly they returned a char*) to comply with ISO
>> C++.
>>
>> A work-around here is to simply comment out line 94 in replace/replace.h
>> so the ISO C++ compliant declaration from string.h is used.
>>
>> Michael
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Playerstage-users mailing list
>> Playerstage-users@...
>> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Playerstage-users mailing list
> Playerstage-users@...
> https://lists.sourceforge.net/lists/listinfo/playerstage-users
>
>
--
Richard Vaughan
Autonomy Lab / Computing Science / Simon Fraser University
|