我收到了幾個error LNK2019: unresolved external symbol
錯誤,但它們不是由於dll
s,lib
s或OO錯誤,因爲在每個其他StackOverflow文章中都有關於此鏈接錯誤的信息。Visual Studio C++ 2010鏈接錯誤
代碼:
https://github.com/mcandre/fgdump/tree/master/cachedump
跟蹤:
1>------ Build started: Project: cachedump, Configuration: Release Win32 ------
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
1>cachedump.obj : error LNK2019: unresolved external symbol "void __cdecl rc4_crypt(struct rc4_state *,unsigned char *,int)" ([email protected]@[email protected]@[email protected]) referenced in function "unsigned long __cdecl DumpCache(void)" ([email protected]@YAKXZ)
1>cachedump.obj : error LNK2019: unresolved external symbol "void __cdecl rc4_setup(struct rc4_state *,unsigned char *,int)" ([email protected]@[email protected]@[email protected]) referenced in function "unsigned long __cdecl DumpCache(void)" ([email protected]@YAKXZ)
1>cachedump.obj : error LNK2019: unresolved external symbol "void __cdecl md5_finish(struct md5_context *,unsigned char * const)" ([email protected]@[email protected]@[email protected]) referenced in function "unsigned long __cdecl DumpCache(void)" ([email protected]@YAKXZ)
1>cachedump.obj : error LNK2019: unresolved external symbol "void __cdecl md5_update(struct md5_context *,unsigned char *,unsigned long)" ([email protected]@[email protected]@[email protected]) referenced in function "unsigned long __cdecl DumpCache(void)" ([email protected]@YAKXZ)
1>cachedump.obj : error LNK2019: unresolved external symbol "void __cdecl md5_starts(struct md5_context *)" ([email protected]@[email protected]@@Z) referenced in function "unsigned long __cdecl DumpCache(void)" ([email protected]@YAKXZ)
1>C:\Users\andrew\Desktop\src\fgdump\cachedump\Release\cachedump.exe : fatal error LNK1120: 5 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
ABC
你是不是新來的StackOverflow。難道你不知道這種問題會很快關閉嗎? – 2012-01-14 19:18:24
這個問題不是重複的;它與LNK2019上的其他帖子有很大不同。根本原因是非常不同的,因爲此代碼不使用'dll's,不使用''lib's,並且不使用OO。 – mcandre 2012-01-14 19:32:46
我沒有說它是重複的。這只是一個不適合SO的問題,因爲你已經給了我們大量的代碼並要求找出你的錯誤。發生問題的最小例子發生了什麼? – 2012-01-14 19:38:29