>> void >> main() >> { >> >> extern (C) int addem (int, int); > > Move the proto out of main() into the module scope - as is, > it's treated as a nested function and gets its name mangled. > > artur that was exactly the right thing to do! thanks for your prompt help. -fk