Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] Re: (PR#11213) Making client headers compatible with C++
Home

[Freeciv-Dev] Re: (PR#11213) Making client headers compatible with C++

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] Re: (PR#11213) Making client headers compatible with C++
From: "Frédéric Brière" <fbriere@xxxxxxxxxxx>
Date: Sat, 27 Nov 2004 15:15:17 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=11213 >

On Sat, Nov 27, 2004 at 10:05:34AM -0800, Jason Short wrote:
> Wouldn't it be easier to use an "extern" declaration?

extern "C" only tells the linker to disable C++ name mangling within its
scope; it has no effect on the syntax, and actually does nothing at
compilation stage.

(Obviously, I've already enclosed my #includes in extern "C", otherwise
I wouldn't have been able to link a C++ libguiclient.a with the rest of
Freeciv.)


-- 
             Frédéric Brière    <*>    fbriere@xxxxxxxxxxx

 =>  <fbriere@xxxxxxxxxx> IS NO MORE:  <http://www.abacomsucks.com>  <=





[Prev in Thread] Current Thread [Next in Thread]