Unresolved externals despite linking in zlib.lib

后端 未结 8 1012
礼貌的吻别
礼貌的吻别 2020-12-05 23:25

I\'ve been trying to compile an application which utilizes zlib compression in VC++ 2010.

I get the

error LNK2019: unresolved external symbol _infla         


        
8条回答
  •  猫巷女王i
    2020-12-05 23:42

    Be aware that the order of the libraries matters. Suppose you want to link A.OBJ, B.LIB, and C.LIB, with the input files specified in this order. If C.LIB calls a function in B.LIB, it won't be found (unless it was already fortuitously called from A.OBJ).
    Could this be the source of your problem?

提交回复
热议问题