Tangobos build problem

Simen Haugen simen at norstat.no
Fri Sep 5 01:45:05 PDT 2008


Bill Baxter wrote:
> On Thu, Sep 4, 2008 at 10:07 PM, Simen Haugen <simen at norstat.no> wrote:
>> I'm using tango, but couldn't find any COM libraries. I thought about
>> starting one myself, but as I have very simple needs with only one specific
>> library I concluded it wasn't worth it.
>>
>> Then I found juno! Seemed simple enough, but it's phobos only.
>> I installed tangobos, but I cannot seem to mix tango/phobos.
>>
>> .\std-c-stdlib.obj(std-c-stdlib)  Offset 00234H Record Type 0091
>>  Error 1: Previous Definition Different : _EXIT_SUCCESS
>> .\std-c-stdlib.obj(std-c-stdlib)  Offset 002ECH Record Type 0091
>>  Error 1: Previous Definition Different : _EXIT_FAILURE
>>
>> But when I look at the files, I cannot see any difference at all...
>>
> 
> I seem to recall those are the kinds of errors you run into when you
> define constants in an extern(Windows) block as "const" instead of
> using an enum.  The problem is that extern(Windows) things don't get
> mangled with their package name, so if you have the same constant in
> two places you will get a clash.  Enums doing use storage, though, so
> they don't clash.  Maybe that will help you get to the root of the
> problem.
> 
> --bb

But then I cannot see how anyone including stdlib is able to compile.
Shouldn't both tangobos and tango change these to enums then?



More information about the Digitalmars-d-learn mailing list