Weird compilation error only as static library

Márcio Martins marcioapm at gmail.com
Wed Sep 26 19:08:45 UTC 2018


Hi!

I am getting this error when compiling my code as a static 
library.
It works fine as an executable. I have no idea what's happening.
Has someone seen something like this before? What could be 
different?

This is the error:
/usr/include/dmd/druntime/import/core/stdc/stdint.d(159,26): 
Error: undefined identifier cpp_ulong
/usr/include/dmd/druntime/import/core/sys/posix/sys/types.d(109,11): Error: undefined identifier c_long
../../../.dub/packages/libuv-1.20.3/libuv/deimos/libuv/uv.d(367,2): Error: mixin `deimos.libuv.uv.uv_stream_s.UV_STREAM_FIELDS!()` error instantiating

It's a small library with libuv as the only dependency. It works 
fine compiling it's own example, but fails when I compile it as a 
dub dependency.


More information about the Digitalmars-d-learn mailing list