www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - module convicts with package

reply Nicholas Wilson <iamthewilsonator hotmail.com> writes:
Im probably missing something really obvious but

Error: module dcompute.driver.ocl120 from file 
source/dcompute/driver/ocl120/packge.d conflicts with package 
name ocl120

the package.d file in question

```
module dcompute.driver.ocl120;

public import dcompute.driver.error;

public import dcompute.driver.ocl120.buffer;
public import dcompute.driver.ocl120.context;
public import dcompute.driver.ocl120.device;
public import dcompute.driver.ocl120.event;
public import dcompute.driver.ocl120.image;
public import dcompute.driver.ocl120.kernel;
public import dcompute.driver.ocl120.memory;
public import dcompute.driver.ocl120.platform;
public import dcompute.driver.ocl120.program;
public import dcompute.driver.ocl120.queue;
public import dcompute.driver.ocl120.raw;
public import dcompute.driver.ocl120.sampler;
public import dcompute.driver.ocl120.util;
```

raw has a package.d
```
module dcompute.driver.ocl120.raw;

public import dcompute.driver.ocl.raw120.types;
public import dcompute.driver.ocl.raw120.functions;
public import dcompute.driver.ocl.raw120.enums;
public import derelict.opencl.cl;
```

any suggestions?
Jul 19 2017
parent reply Adam D. Ruppe <destructionator gmail.com> writes:
On Thursday, 20 July 2017 at 04:33:55 UTC, Nicholas Wilson wrote:
 Error: module dcompute.driver.ocl120 from file 
 source/dcompute/driver/ocl120/packge.d conflicts with package
Is that a copy/paste error or did you actually misspell the file name "packge.d" instead of "package.d"?
Jul 19 2017
parent Nicholas Wilson <iamthewilsonator hotmail.com> writes:
On Thursday, 20 July 2017 at 04:38:40 UTC, Adam D. Ruppe wrote:
 On Thursday, 20 July 2017 at 04:33:55 UTC, Nicholas Wilson 
 wrote:
 Error: module dcompute.driver.ocl120 from file 
 source/dcompute/driver/ocl120/packge.d conflicts with package
Is that a copy/paste error or did you actually misspell the file name "packge.d" instead of "package.d"?
It was, thanks. I knew it was going to be smth stupid.
Jul 19 2017