VS2012 lib error

Hi every one,

Part of a network project is to build a lib which I did using VS2010 and the program run no problem. Then I switched to VS2012 and rebuild the .lib file and now I'm getting the following error when I try to run the program that use that .lib file.

1>CNAIAPI_32.lib(await_contact.obj) : error LNK2001: unresolved external symbol "void * await_contact_mutex" (?await_contact_mutex@@3PAXA)

fatal error LNK1120: 1 unresolved externals

I did everything exactly the same way on both projects and for what I have found there must be because VS2012 doesn't count with all the libraries that VS2010. But still is there a way I could find that library?

I should also mention that the await_contact_mutex variable is defined as

#elif defined(WIN32)
extern HANDLE await_contact_mutex, cname_mutex, appname_mutex;
#endif

Thanks
Last edited on
Topic archived. No new replies allowed.