Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
August 03, 2007 Class mismatch error (D compiler/Phobos) | ||||
---|---|---|---|---|
| ||||
Hi, Can someone help me on this error: phobos/internal/object.d(91): class internal.object.Object D compiler and phobos/object.d are mismatched Thanks, |
August 03, 2007 Re: Class mismatch error (D compiler/Phobos) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Márcio Faustino | Reply to Márcio,
> Hi,
>
> Can someone help me on this error:
> phobos/internal/object.d(91): class internal.object.Object D compiler
> and
> phobos/object.d are mismatched
> Thanks,
>
I would assume that your copy of phobos and DMD are not from the same version
|
August 03, 2007 Re: Class mismatch error (D compiler/Phobos) | ||||
---|---|---|---|---|
| ||||
Posted in reply to BCS | Reply to BCS,
> I would assume that your copy of phobos and DMD are not from the same > version
Yes they're not, but this is on purpose. Previously (with DMD v1.x) I'd just compile like this: dmd file.d -Iphobos -release -w -debug -c -offile.o
with my own version of Phobos and it'd just work. Now it doesn't. Do you have any idea why?
|
August 03, 2007 Re: Class mismatch error (D compiler/Phobos) | ||||
---|---|---|---|---|
| ||||
Posted in reply to BCS | BCS wrote:
> Reply to Márcio,
>
>> Hi,
>>
>> Can someone help me on this error:
>> phobos/internal/object.d(91): class internal.object.Object D compiler
>> and
>> phobos/object.d are mismatched
>> Thanks,
>>
>
> I would assume that your copy of phobos and DMD are not from the same version
>
>
I might not have explained myself very well. What I'm doing is compiling source code with a stripped down version of Phobos, and that error keeps happening. But previously, with DMD v1.x, that didn't happen.
|
August 03, 2007 Re: Class mismatch error (D compiler/Phobos) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Márcio Faustino | Reply to Márcio Faustino, > Reply to BCS, > >> I would assume that your copy of phobos and DMD are not from the same >> > version >> > Yes they're not, but this is on purpose. Previously (with DMD v1.x) > I'd just compile like this: dmd file.d -Iphobos -release -w -debug -c > -offile.o > > with my own version of Phobos and it'd just work. Now it doesn't. Do > you have any idea why? > this might have somthing to do with it. http://www.digitalmars.com/d/1.0/changelog.html#new1_017 Added __VENDOR__ and __VERSION__. |
August 03, 2007 Re: Class mismatch error (D compiler/Phobos) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Márcio Faustino | Márcio Faustino wrote:
> BCS wrote:
>> Reply to Márcio,
>>
>>> Hi,
>>>
>>> Can someone help me on this error:
>>> phobos/internal/object.d(91): class internal.object.Object D compiler
>>> and
>>> phobos/object.d are mismatched
>>> Thanks,
>>>
>>
>> I would assume that your copy of phobos and DMD are not from the same version
>
> I might not have explained myself very well. What I'm doing is compiling source code with a stripped down version of Phobos, and that error keeps happening. But previously, with DMD v1.x, that didn't happen.
You need to keep your stripped down version of Phobos in sync with the version of Phobos shipped with the compiler you're using. At least insofar as the public object.d and what's inside /internal. This particular error sounds like the public object.d and internal/object.d disagree about something important.
Sean
|
August 04, 2007 Re: Class mismatch error (D compiler/Phobos) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | Sean Kelly wrote:
> Márcio Faustino wrote:
>> I might not have explained myself very well. What I'm doing is compiling source code with a stripped down version of Phobos, and that error keeps happening. But previously, with DMD v1.x, that didn't happen.
>
> You need to keep your stripped down version of Phobos in sync with the version of Phobos shipped with the compiler you're using. At least insofar as the public object.d and what's inside /internal. This particular error sounds like the public object.d and internal/object.d disagree about something important.
>
> Sean
Thanks guys, I think I got it working now. If I have more questions I'll post them here. Again, thanks.
|
Copyright © 1999-2021 by the D Language Foundation