C:\>dmc main.cpp link main,,,user32+kernel32/noi; OPTLINK (R) for Win32 Release 7.50B1 Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved main.obj(main) Error 42: Symbol Undefined ?foo@@YAHXZ (int cdecl foo(void )) --- errorlevel 1