dll中error LNK2001: unresolved external symbol

在windows ce 先将lib链接成dll时,出现了错误:error LNK2001: unresolved external symbol,

原因有很多种,请参考MSDN: http://msdn.microsoft.com/en-us/library/aa234493(v=VS.60).aspx

想了一晚上,早晨过来才恍然大悟,原来是sources文件中LINKLIBS造成的,在wince 下不支持这个变量,应该换成SOURCELIBS,

for example:  SOURCELIBS=$(SOURCELIBS)\

                                                     A.lib\

                                                      B.lib

SOURCELIBS的作用请参考本人另一篇博客

 

 

                                                 

                                                     

 

你可能感兴趣的:(windows,dll,WinCE)