import std.socket

Shadow_exe shadow_exe at ukr.net
Sat May 12 13:49:29 PDT 2012


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 at 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?


More information about the Digitalmars-d mailing list