View previous topic :: View next topic |
Author |
Message |
JJR
Joined: 22 Feb 2004 Posts: 1104
|
Posted: Sun Mar 12, 2006 12:57 am Post subject: Ares "Build" Problems |
|
|
Sean, I'm trying to get build to construct the Ares library still... it's tougher than I thought. I actually begin to see the benefit of using makefiles in this particular case.
One of the issues though might be useful to you. Because I'm using imports to direct build to compile specific files, I came across an dmd complaint about a module already being included or something. I can't remember the exact message but it was rather useless information. I searched around for a solution, though, and found that the file utf.d only has a heading "module utf;" in it. Two files, adi.d and aApply.d, import that module with "import uitil.utf;"
This causes weird errors unless you change the utf file to say "module util.utf;"
I'm not sure if this would cause any big problems later on, but it certainly prevented my build module from completing the compile. I'm not sure why your makefile version didn't have trouble.
Further, I'm curious to know why four files - critical.c, complex.c, monitor.c, and deh.c - are C files. Can't they be coded in D? It seems strange because ares/phobos have a lot of low level stuff already in them that are coded in D. These files made using the build tool a little tricky.
Thanks,
John |
|
Back to top |
|
|
sean
Joined: 24 Jun 2004 Posts: 609 Location: Bay Area, CA
|
Posted: Sun Mar 12, 2006 1:42 am Post subject: Re: Ares "Build" Problems |
|
|
JJR wrote: | Sean, I'm trying to get build to construct the Ares library still... it's tougher than I thought. I actually begin to see the benefit of using makefiles in this particular case.
One of the issues though might be useful to you. Because I'm using imports to direct build to compile specific files, I came across an dmd complaint about a module already being included or something. I can't remember the exact message but it was rather useless information. I searched around for a solution, though, and found that the file utf.d only has a heading "module utf;" in it. Two files, adi.d and aApply.d, import that module with "import uitil.utf;"
This causes weird errors unless you change the utf file to say "module util.utf;" |
Thanks! Done
Quote: | Further, I'm curious to know why four files - critical.c, complex.c, monitor.c, and deh.c - are C files. Can't they be coded in D? It seems strange because ares/phobos have a lot of low level stuff already in them that are coded in D. These files made using the build tool a little tricky. |
I've wondered the same thing. They're probably just legacy code--I see no reason why they need to be in C. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|