Thread overview | |||||
---|---|---|---|---|---|
|
July 01, 2004 weird compiler error | ||||
---|---|---|---|---|
| ||||
ok, this was just weird, turns out if I have a file called object.d in the same directory as another .d file which I am trying to compile I get a weird error message: D:\D\src\build\temp\a>dmd a.d d:\D\dmd\bin\..\src\phobos\std\c\stdio.d(164): identifier 'size_t' is not defined D:\D\src\build\temp\a>dir Volume in drive D is BLACKHOLE Volume Serial Number is 481E-ADF3 Directory of D:\D\src\build\temp\a 07/01/2004 12:56p <DIR> . 07/01/2004 12:56p <DIR> .. 07/01/2004 12:56p 18 a.d 07/01/2004 12:43p 135 object.d 2 File(s) 153 bytes 2 Dir(s) 1,062,141,952 bytes free Regan. -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ |
July 20, 2004 Re: weird compiler error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Regan Heath | "Regan Heath" <regan@netwin.co.nz> wrote in message news:opsafo2dqr5a2sq9@digitalmars.com... > ok, this was just weird, turns out if I have a file called object.d in the same directory as another .d file which I am trying to compile I get a weird error message: It's best to consider the module name 'object' as reserved, since the compiler has a lot of exact expectations for its contents! |
July 20, 2004 Re: weird compiler error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | On Mon, 19 Jul 2004 22:01:29 -0700, Walter <newshound@digitalmars.com> wrote: > "Regan Heath" <regan@netwin.co.nz> wrote in message > news:opsafo2dqr5a2sq9@digitalmars.com... >> ok, this was just weird, turns out if I have a file called object.d in the >> same directory as another .d file which I am trying to compile I get a >> weird error message: > > It's best to consider the module name 'object' as reserved, since the > compiler has a lot of exact expectations for its contents! I figured that was the case. Can we get some sort of error so this does not happen, i.e. "module name 'object' reserved". Regan. -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ |
Copyright © 1999-2021 by the D Language Foundation