Faced with an interesting problem:
If I import std.sotsket in the main file (which I am passing a parameter for the dmd), everything works, but if I import std.sotsket in the include file I get this situation here:

main.d:
module test;

import  net.local_address;


void main(){
}

net/local_address.d:
module net.local_address;

import  std.socket;

the compiler says:
root@213:~/test# dmd test.d
test.o:(.data+0xc): undefined reference to `_D3net13local_address12__ModuleInfoZ'
collect2: ld returned 1 exit status
--- errorlevel 1


How to deal with it?

Reply via email to