View previous topic :: View next topic |
Author |
Message |
kris
Joined: 27 Mar 2004 Posts: 1494 Location: South Pacific
|
Posted: Mon Jun 05, 2006 11:58 pm Post subject: Some problems with .di files |
|
|
Hi Derek,
Ran into a problem with Build vis-a-vis .di files ~ Build sees the module reference, and adds the module to the list of things that dmd should operate upon. However, dmd doesn't like to be handed (command line) references to .di files in any shape or form; and barfs when you try it. In other words, a reference to a .di file must only be loaded implicitly by dmd. I'm not quite sure what to make of that, but there it is.
To get around the issue, one can add a pragma(nolink) to the file, and rename it .d instead of .di, since Build otherwise ignores the .di file completely and adds a .d reference into the list of things to compile (not good).
Any ideas on how to deal with this in a more effective manner? |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Tue Jun 06, 2006 12:29 am Post subject: |
|
|
I see the problem. Give me a bit to come up with a solution. _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Tue Jun 06, 2006 2:41 am Post subject: |
|
|
Ok. It needed a small correction to the application. I've done the changes locally but I'll wait at least 24-hours to see if any issues get reported with v3.00 first then fold them in together. _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
kris
Joined: 27 Mar 2004 Posts: 1494 Location: South Pacific
|
Posted: Tue Jun 06, 2006 10:20 am Post subject: |
|
|
ok, thanks |
|
Back to top |
|
|
|