This is really a general question of how to link with a DLL in VS2005. The error you're getting is at link time, so its related to the .lib file which is associated with the .dll. In VS2005 you need to add this lib to the Linker input settings. Right-click on the project you're building in the Solution Explorer and choose Properties | Linker | Input. Add mitab.lib (if that's what the lib file is called). Also make sure that in Tools | Options | Projects and Solutions | VC++ Directories the path to the LIB file is present in the list. Cheers, Anthony.
--- On Mon, 24/11/08, skahrkling <[EMAIL PROTECTED]> wrote: From: skahrkling <[EMAIL PROTECTED]> Subject: [mitab] how to get mitab_c_create() etc. to link to .dll To: [email protected] Received: Monday, 24 November, 2008, 9:52 PM I write several data file processing tools using Microsoft Visual Studio 2005. (Microsoft Visual C++ 2005) Simple executable. Source file is a .cpp. I would like to incorporate Mitab DLL/library/ API in some way. There is an absence of documentation. The only .h file that seems to be a "C" header is mitab_capi.h; which I included in my project. This is not mentioned in the useless README.TXT. I placed the mitab.dll in various locations: same folder as my program's .vcproj, plus \bin, plus \Debug folder just in case. Predictably the compiler complains with: isolate.obj : error LNK2019: unresolved external symbol _mitab_c_open@ 4 referenced in function _main I realize I don't know the first thing about how to link the .dll to the obj/executable or where/how to tell the linker. A 2-line readme would have been infinitely helpful to get something this basic to work real quick. Any help would be much appreciated. Start your day with Yahoo!7 and win a Sony Bravia TV. Enter now http://au.docs.yahoo.com/homepageset/?p1=other&p2=au&p3=tagline
