我用C++Builder 6编译c++的dll文件时出现以下错误[Linker Error] Unresolved external '_inflateInit

  • 主题发起人 主题发起人 yuki2003
  • 开始时间 开始时间
Y

yuki2003

Unregistered / Unconfirmed
GUEST, unregistred user!
我用C++Builder 6编译c++的dll文件时出现以下错误[Linker Error] Unresolved external '_inflateInit_' referenced from C:/HPIUTIL21/HPIUTIL.OBJ(50分)<br />我用C++Builder 6编译c++的dll文件时出现以下错误
[Linker Error] Unresolved external '_inflateInit_' referenced from C:/HPIUTIL21/HPIUTIL.OBJ
[Linker Error] Unresolved external '_inflate' referenced from C:/HPIUTIL21/HPIUTIL.OBJ
[Linker Error] Unresolved external '_inflateEnd' referenced from C:/HPIUTIL21/HPIUTIL.OBJ
[Linker Error] Unresolved external '_deflateInit_' referenced from C:/HPIUTIL21/HPIUTIL.OBJ
[Linker Error] Unresolved external '_deflate' referenced from C:/HPIUTIL21/HPIUTIL.OBJ
[Linker Error] Unresolved external '_deflateEnd' referenced from C:/HPIUTIL21/HPIUTIL.OBJ
请问如何解决。
inflateInit等函数是在zlib库里面的
 
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_mktime'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_strlen'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_strcpy'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_inflateInit_'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_inflate'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_inflateEnd'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_memcpy'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_strcat'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_memmove'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_stricmp'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_fopen'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_fseek'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_ftell'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_fclose'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_strrchr'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_fwrite'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_deflateInit_'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_deflate'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_deflateEnd'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_memset'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '_fread'
[Error] HPIUtil.pas(3915): Unsatisfied forward or external declaration: '__ftol'
现在在delphi连接obj文件时还出现这些错误。请问怎么解决
我是想解决
http://www.delphibbs.com/delphibbs/dispq.asp?lid=1479832 300分
的问题,谢谢。
 
把下划线去掉试试
 
'_deflate'这些变量在c++代码中是'deflate'没有下划线的,估计是C++Builder并没把这些变量编译进去
 
声明为 __cdecl
 
接受答案了.
 

Similar threads

I
回复
0
查看
948
import
I
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
795
import
I
后退
顶部