error lnk2019 when calling a function with wchar_t param

hey guys,

my problem is i have a static library (native). and i have a class that takes a wide character ("wchat_t") as a parameter.

now when i did my win32 mfc application, i come to use that function inside my class and it results in a link error to that function:
error LNK2019: unresolved external symbol "public: void __thiscall NBaseStaticMesh::LoadModel(wchar_t *)"

what do u think is the problem


Answer this question

error lnk2019 when calling a function with wchar_t param

  • g-spot-web

    btw im using vs 2003.

  • yyang500

    problem solved guys, thx! it was the /zc flag to be set in my library.

  • error lnk2019 when calling a function with wchar_t param