I want to compile the appended code snippet from HelpExamples.c into a DLL using MSVC6 and added C:\Programme\Maple10\extern\include as well as C:\Programme\Maple10\bin.win as pathes to the project. After compiling I get the following error message for linking: Linking... Creating library Release/MapleAPI.lib and object Release/MapleAPI.exp MapleAPI.obj : error LNK2001: unresolved external symbol __imp__ToMapleString@8 It seems that i miss an import library - what should I do (except having a break for some more coffee)? #include "stdafx.h" BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { return TRUE; } #include #include #include #include #include #include #include "maplec.h" // ? ? #if !defined(EXPORT_DECL) # ifdef _MSC_VER # define EXPORT_DECL __declspec(dllexport) # else # define EXPORT_DECL # endif /* _MSC_VER */ #endif /* EXT_DECL */ EXPORT_DECL ALGEB M_DECL TimeString( MKernelVector kv, ALGEB args ) { clock_t c; c = time(&c); if( MapleNumArgs(kv,(ALGEB)args) > 0 ) { MapleRaiseError(kv,"no arguments expected"); return( NULL ); } return( ToMapleString(kv,asctime(localtime(&c))) ); }