Linking with c code

I am trying to use a .c module to use the LimeLM APIs.

I know there is an easy answer, but I'm not seeing it....

In turboActivate.h, I know I need to (at least) change#define TURBOACTIVATE_API extern "C" __declspec(dllexport)

to #define TURBOACTIVATE_API extern __declspec(dllexport)

but I'm still getting, unresolved symbol errors. Amoung other errors:c:\foo\foo.obj : error LNK2019: unresolved external symbol __imp__Activate@0 referenced in function _ActivateProductKey@0

Thanks

Get the latest version of TurboActivate on your API page -- we've fixed the header compilation in C code a couple of months ago. Also, on Windows, make sure you're using the TurboActivate.lib file (see, Using TurboActivate with C, C++, and Objective-C):

#ifdef _WIN32    #pragma comment (lib, "TurboActivate.lib")#endif

On Linux, Mac or BSD you need to reference the libTurboActivate.so or .dylib in your compiler options. See "Using TurboActivate on Mac OS X" or "Using TurboActivate on Linux".