I'm testing to make calls to functions in other files using D code My problem is that I receive errors I don't understand in server.d
import std.stdio;
extern (D) void otherFunction();
main(){
otherFunction();}
and in client.d
import std.stdio;
void otherFunction(){ writeln("hello world");}
"dmd server.d" renders this output error
Undefined symbols for architecture x86_64:
"_D6server13otherFunctionFZv", referenced from:
__Dmain in server.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: linker exited with status 1
Any ideas why I can't make the call? Oh I'm on OS X 10.9 And the call work as long as the function is in the same file as main() /a