www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Class mismatch error (D compiler/Phobos)

reply Márcio Faustino <m.faustino no.spam.gmail.com> writes:
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,
Aug 03 2007
parent reply BCS <ao pathlink.com> writes:
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
Aug 03 2007
next sibling parent reply Márcio Faustino <m.faustino no.spam.gmail.com> writes:
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?
Aug 03 2007
parent BCS <ao pathlink.com> writes:
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__.
Aug 03 2007
prev sibling parent reply =?UTF-8?B?TcOhcmNpbyBGYXVzdGlubw==?= <m.faustino no.spam.gmail.com> writes:
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.
Aug 03 2007
parent reply Sean Kelly <sean f4.ca> writes:
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
Aug 03 2007
parent =?UTF-8?B?TcOhcmNpbyBGYXVzdGlubw==?= <m.faustino no.spam.gmail.com> writes:
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.
Aug 04 2007