monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] 3rd party libraries


From: Stephen Leake
Subject: Re: [Monotone-devel] 3rd party libraries
Date: Sat, 25 Oct 2008 11:49:00 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt)

"Zack Weinberg" <address@hidden> writes:

> On Sat, Oct 25, 2008 at 4:52 AM, Stephen Leake
> <address@hidden> wrote:
>> Markus Wanner <address@hidden> writes:
>>> Stephen Leake wrote:
>>>> You seem to be implying that a dynamically linked object file cannot
>>>> be compiled with a C++ compiler. Is that correct?
>>>
>>> An object file *is* compiled, it can only be linked against other
>>> compiled objects.
>>
>> Obviously we don't want to re-compile the system library.
>>
>> But is there some reason it wasn't compiled with C++ in the first place?
>
> In order to do it, you have to jump through a whole bunch of hoops;
> the upstream lua makefiles don't do it for you.  (We don't use their
> makefiles, and we wound up renaming every .c file to have a .cc
> extension, as I recall.)   It's reasonable to assume system
> integrators have not gone to the trouble.

I see. So we in effect changed the Lua ABI to support C++ exceptions. 

I think it makes sense to stick with the upstream ABI, and work with
the Lua developers to get better error handling.

> Also, a library built that way would be binary incompatible - you'd
> have to give it a different soname and .pc file and everything.

Right. 

-- 
-- Stephe




reply via email to

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