I am writing c++ codes. When compiling (win7 system, compile in cmd with build.bat) I get error like this:
handler.lib(Media.obj):error LNK2019: unresolved external symbol _lua_pcallk referenced in
function "public:void __thiscall Media::loadScript(struct luabridge::lua_State *,class
std::basic_string<char, struct std::char_traits<char>, class std::allocator<char> > const &)".....
Therefore, I tried to locate the function
public:void __thiscall Media::loadScript(....)
to see what is going on, but I cannot find this function in my workplace...I have following ideas about why I cannot find this function and why this error occurs (Just to make things clearer, the whole system contains 11730 files which are quite complicated):
The thing following "public:void __thiscall" is a variable or something similar to a variable and somewhere in the codes this variable has been changed. So that's why I cannot find the exact function.
There are many codes containing main functions and I need to register some necessary lua environment in the main function. Probably I chose a wrong entry main function?
These are just my thoughts, are they reasonable and any other ideas? Oh and, in this work we use LuaBridge to do C++ Lua interaction, anyone who did similar work before encountered the same problem?