www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Error: only one main allowed. Previously found main at *

reply Brian <zoujiaqing gmail.com> writes:
dmd latest version bug?

```sh
source/bootstrap.d(4,6): Error: only one main allowed. Previously 
found main at 
/tmp/dub_test_root-ad0fb2e3-6be1-4ca8-9153-e4fdd5c1b191.d(10,12)
dmd failed with exit code 1.
```

Build logs:
https://travis-ci.org/huntlabs/hunt-skeleton/jobs/389884419#L480
Jun 19 2018
parent Timoses <timosesu gmail.com> writes:
On Tuesday, 19 June 2018 at 17:16:28 UTC, Brian wrote:
 dmd latest version bug?

 ```sh
 source/bootstrap.d(4,6): Error: only one main allowed. 
 Previously found main at 
 /tmp/dub_test_root-ad0fb2e3-6be1-4ca8-9153-e4fdd5c1b191.d(10,12)
 dmd failed with exit code 1.
 ```

 Build logs:
 https://travis-ci.org/huntlabs/hunt-skeleton/jobs/389884419#L480
Did you fix it? Compiles fine for me on dmd version 2.081.0 and 2.080.1. (https://github.com/huntlabs/hunt-skeleton)
Jul 18 2018