I don't know if this has been seen before, but here goes:
There appears to be an interaction between std.stdio and std.stream such that an error is generated when a File object is created. Here is a simplified example of what I've been experiencing:


  1 import std.stdio;
  2 import std.stream;
  3
  4 void main()
  5 {
  6     auto f = File( "foo.bar", "w" );
  7 }

I have compiled the above on both Ubuntu Linux 64-bit and Windows 64-bit systems and I get a similar error message from DMD. here is the error:

$ dmd test.d
test.d(6): Error: std.stdio.File at /usr/include/dmd/phobos/std/stdio.d(258) conflicts with std.stream.File at /usr/include/dmd/phobos/std/stream.d(1820)

$

When I remove the import of std.stream, the compiler runs fine with no errors generated. Again, this is a simplified example. My original project utilized features contained in both stdio and stream libraries.

Any help or direction on this would be greatly appreciated.

Best Regards,

Pete


Reply via email to