www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Calling one_mad_alien...

reply Regan Heath <regan netwin.co.nz> writes:
Just FYI.. I was just trying your bitmapview.002.src.zip demo when I 
struck this error:

main.d(14): module tileedit is in multiple packages tileedit

on main.d(14) I saw "import bitview;", opening bitview.d I saw "module 
tileedit;"..
changing that to "module bitview;" fixed the compile problem.

I have crossposted this to the bugs group as I think that error message 
above needs improving.. I have no idea what it's trying to say.

Regan

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Oct 08 2004
parent reply J C Calvarese <jcc7 cox.net> writes:
Regan Heath wrote:
 Just FYI.. I was just trying your bitmapview.002.src.zip demo when I 
 struck this error:

Mike (a/k/a one_mad_alien; a/k/a l8night) probably ought to put a big notice on his website that some of the Core32/L8night stuff exists as dsource projects... L8night: http://www.dsource.org/projects/l8night/ Core32: http://www.dsource.org/projects/core32/ Since you mentioned bitmapview, you might want to read this in particular: http://www.dsource.org/forums/viewtopic.php?p=1836#1836 I think the newest code is in the SVN repository for L8night (the download area for the dsource project might be out-of-date). And since L8night depends on Core32, you'll need that, too. Otherwise, this code might work for you: http://jcc_7.tripod.com/d/l8night.html Let me know if you run into any more problems. Since I haven't worked with any of this stuff for a few months, some of the code may be a little stale.
 main.d(14): module tileedit is in multiple packages tileedit

I agree it's vague. I've run into this before. I think it means the compiler is finding 2 modules named "tileedit" at the top of the file or something similar. I like to mention the error message in the Subject when that's my main criticism, e.g. "module is in multiple packages". In fact after searching the D archives, I found where I complained about this error message back in January: http://www.digitalmars.com/d/archives/21956.html And in November 2003: http://www.digitalmars.com/d/archives/19168.html
 
 on main.d(14) I saw "import bitview;", opening bitview.d I saw "module 
 tileedit;"..
 changing that to "module bitview;" fixed the compile problem.
 
 I have crossposted this to the bugs group as I think that error message 

Come on, pick a newsgroup and go with it. ;) If you think it's a compiler bug, post it on the bug group. If you think you're coding it wrong and you're asking for a tip, post it on dm.D. (Post as if you're confident even if you're not.)
 above needs improving.. I have no idea what it's trying to say.
 
 Regan

-- Justin (a/k/a jcc7) http://jcc_7.tripod.com/d/
Oct 08 2004
parent reply Regan Heath <regan netwin.co.nz> writes:
On Fri, 08 Oct 2004 18:05:57 -0500, J C Calvarese <jcc7 cox.net> wrote:
 Regan Heath wrote:
 Just FYI.. I was just trying your bitmapview.002.src.zip demo when I 
 struck this error:

Mike (a/k/a one_mad_alien; a/k/a l8night) probably ought to put a big notice on his website that some of the Core32/L8night stuff exists as dsource projects... L8night: http://www.dsource.org/projects/l8night/ Core32: http://www.dsource.org/projects/core32/

Actaually.. I knew that. Never mind.
 Since you mentioned bitmapview, you might want to read this in 
 particular:
 http://www.dsource.org/forums/viewtopic.php?p=1836#1836

Thanks.
 I think the newest code is in the SVN repository for L8night (the 
 download area for the dsource project might be out-of-date). And since 
 L8night depends on Core32, you'll need that, too.

 Otherwise, this code might work for you:
 http://jcc_7.tripod.com/d/l8night.html

 Let me know if you run into any more problems. Since I haven't worked 
 with any of this stuff for a few months, some of the code may be a 
 little stale.

I got it all working fine, after fixing the error I mentioned. I was simply posting this because the download needs fixing.. if it's been replaced by a dsource project, fine, does it have the same bug, or was it fixed? .. why don't I get it and see :)
 main.d(14): module tileedit is in multiple packages tileedit

I agree it's vague. I've run into this before. I think it means the compiler is finding 2 modules named "tileedit" at the top of the file or something similar.

In this case it was finding "module tileedit;" at the top of a file called "bitview.d". There were no other occurances of the word "tileedit" in any of the source files, and the error only occurs if you compile all the source files at once, compiling them seperately gives no errors. Basically the error message is broken IMO.
 I like to mention the error message in the Subject when that's my main 
 criticism, e.g. "module is in multiple packages".

Thats a good idea.
 In fact after searching the D archives, I found where I complained about 
 this error message back in January: 
 http://www.digitalmars.com/d/archives/21956.html

 And in November 2003:
 http://www.digitalmars.com/d/archives/19168.html

One of those is identical to this problem.
 on main.d(14) I saw "import bitview;", opening bitview.d I saw "module 
 tileedit;"..
 changing that to "module bitview;" fixed the compile problem.

 I have crossposted this to the bugs group as I think that error message

Come on, pick a newsgroup and go with it. ;) If you think it's a compiler bug, post it on the bug group. If you think you're coding it wrong and you're asking for a tip, post it on dm.D. (Post as if you're confident even if you're not.)

I picked both, because 1/2 of it belonged in the main NG (the bit abouut the example being broken, and the other 1/2 belonged in the bugs group (the bit about the vague error message). Perhaps I should split my post into 2 seperate posts next time? I figured I'd be repeating myself if I did that, so why not cross-post? Regan -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Oct 08 2004
parent J C Calvarese <jcc7 cox.net> writes:
Regan Heath wrote:
 On Fri, 08 Oct 2004 18:05:57 -0500, J C Calvarese <jcc7 cox.net> wrote:
 
 Regan Heath wrote:

 Just FYI.. I was just trying your bitmapview.002.src.zip demo when I 
 struck this error:

Mike (a/k/a one_mad_alien; a/k/a l8night) probably ought to put a big notice on his website that some of the Core32/L8night stuff exists as dsource projects... L8night: http://www.dsource.org/projects/l8night/ Core32: http://www.dsource.org/projects/core32/

Actaually.. I knew that. Never mind.

Now that I think about it, you have better luck contacting Mike through a Private Message at dsource. I doubt he's been keeping up with this newsgroup. I haven't noticed him posting recently.
 I have crossposted this to the bugs group as I think that error message

Come on, pick a newsgroup and go with it. ;) If you think it's a compiler bug, post it on the bug group. If you think you're coding it wrong and you're asking for a tip, post it on dm.D. (Post as if you're confident even if you're not.)

I picked both, because 1/2 of it belonged in the main NG (the bit abouut the example being broken, and the other 1/2 belonged in the bugs group (the bit about the vague error message). Perhaps I should split my post into 2 seperate posts next time? I figured I'd be repeating myself if I did that, so why not cross-post?

Maybe cross-posting is the better approach. I was just suggesting another way of doing it. I guess I don't like to see cross-posting when a thread is started because I try to read all of the messages in dm.D and dm.D.bugs. I find the deja vu aspect to be a bit of a time-waster. Sorry, I didn't mean to come across as so critical.
 
 Regan
 

-- Justin (a/k/a jcc7) http://jcc_7.tripod.com/d/
Oct 08 2004