I wrote a small utility in Linux. I want to build it for Windows. He swears at some parts of the code like this:

```powershell
C:\sources\pxe-restore>dub build -b release
    Starting Performing "release" build using dmd for x86_64.
Building pxe-restore ~master: building configuration [application] source\azh\log.d(3,8): Error: module `core.sys.posix.syslog` import `syslog` not found source\azh\query.d(7,8): Error: module `core.sys.posix.syslog` import `LOG_NOTICE` not found source\azh\query.d(7,8): Error: module `core.sys.posix.syslog` import `LOG_ERR` not found source\azh\query.d(7,8): Error: module `core.sys.posix.syslog` import `LOG_INFO` not found source\azh\query.d(7,8): Error: module `core.sys.posix.syslog` import `LOG_WARNING` not found source\app.d(12,8): Error: module `core.sys.posix.syslog` import `LOG_NOTICE` not found source\app.d(12,8): Error: module `core.sys.posix.syslog` import `LOG_ERR` not found source\app.d(12,8): Error: module `core.sys.posix.syslog` import `LOG_INFO` not found source\app.d(12,8): Error: module `core.sys.posix.syslog` import `LOG_WARNING` not found
Error dmd failed with exit code 1.
```

A small fragment of the code used:

```d
...
import core.sys.posix.syslog : LOG_NOTICE, LOG_ERR, LOG_INFO, LOG_WARNING;
import core.sys.posix.syslog : syslog;
...
void log(int priority, string message)
{
    syslog(priority, (message ~ "\0").ptr);
}
...
```
  • Logging logs in ... Alexander Zhirov via Digitalmars-d-learn
    • Re: Logging... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
      • Re: Log... Alexander Zhirov via Digitalmars-d-learn
        • Re:... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
          • ... Alexander Zhirov via Digitalmars-d-learn
            • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
              • ... Alexander Zhirov via Digitalmars-d-learn
              • ... Alexander Zhirov via Digitalmars-d-learn
                • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
                • ... Alexander Zhirov via Digitalmars-d-learn
            • ... Kagamin via Digitalmars-d-learn

Reply via email to