Today, I encountered an error while building my solution in Visual Studio 2010.
It includes two projects, one of which is to build a DLL. The error message I received is LNK2019.
Finally, this issue was resolved by adding an additional blank row at the end of the .def file. LOL
Actually, Once DLL project being ok, I failed to call the function in the .lib file which is built by that DLL project in the other project, still gave a LNK2019 error…
Finally, I recognized that a function had a WCHAR type parameter and decided to change its type. After making the necessary modification, everything started working correctly.
Also, you can change the properties of project on C++->language->Trait WCHR_t as built in type option, select no.