extern(C++, ns) is wrong

Walter Bright newshound2 at digitalmars.com
Tue Sep 4 23:32:31 UTC 2018


On 9/4/2018 3:33 PM, Manu wrote:
> file1.d
> ---------
> module bliz.ecs.component_access;
> import bliz.ecs.table;
> import bliz.ecs.types;
> extern(C++, bliz):
> // things...
> 
> Error: project\ecs\include\d2\bliz\ecs\component_access.d(7): Error:
> namespace `bliz.ecs.component_access.bliz` conflicts with import
> `bliz.ecs.component_access.bliz` at
> project\ecs\include\d2\bliz\ecs\component_access.d(3)
> 
> file2.d
> ---------
> module bliz.ecs.table;
> import bliz.ecs.types;
> extern(C++, bliz):
> // things...
> 
> Error: project\ecs\include\d2\bliz\ecs\table.d(11): Error: namespace
> `bliz.ecs.table.bliz` conflicts with import `bliz.ecs.table.bliz` at
> project\ecs\include\d2\bliz\ecs\table.d(5)

I can't help because the examples are incomplete. There is no line 5 in table.d, 
nor a line 7 in component_access.d The error messages are not generated from the 
code posted.


More information about the Digitalmars-d mailing list