Source :
http://coka.popcat.net/2011/11/error-lnk2019-unresolved-external-symbol.html
I rarely use windows. I recently encountered a situation using vs. There is a method defined in libcocos2d. It is referenced in libluacocos2d. There is no problem in building libluacocos2d alone, but when building the whole program, it will report error LNK2019: unresolved external symbol. After finding this treasure island blog, I finally figured out what's going on.
My libcocos2d is packaged as a dll, The main method of troubleshooting is to open libcocos2d.lib with Notepad, directly search for the method name, and find that it is not found. The original output is a dll project, you need to add a CC_DLL in front of the method name to be exposed, rebuild, complete, details see source url
Three solutions for error LNK2019: unresolved external symbol
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326332619&siteId=291194637
Recommended
Ranking