|
|
导航: |
论坛 -> DELPHI技术
斑竹:liumazi,sephil |
|
作者: |
tn987 (tn987) |
▲▲▲▲△ |
-
|
普通会员 |
|
2018/12/9 13:26:16 |
标题: |
zlib,TZDecompressionStream在win64编译出错 |
浏览:1771 |
|
加入我的收藏 |
楼主: |
使用了TZDecompressionStream,在win32编译没有问题,在win64编译出错, [ilink64 Error] Error: Unresolved external '_lseek' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\20.0\LIB\WIN64\RELEASE\RTL.A|System.ZLib.o
怎么解?
----------------------------------------------
- |
作者: |
|
2018/12/9 20:41:18 |
1楼: |
我使用 10.3 正常。
----------------------------------------------
Delphi4Linux Delphi三层/FireDAC 技术群:734515869 http://www.cnblogs.com/rtcmw
|
作者: |
unis (unis) |
▲▲▲▲△ |
-
|
普通会员 |
|
2018/12/10 10:23:19 |
2楼: |
this error only in C++Builder x64 (with disabled "Link with runtime packages") can use:
#ifdef _WIN64 #pragma comment(lib, "msvcrt") #endif
----------------------------------------------
-
|
作者: |
|
2018/12/10 16:22:07 |
3楼: |
to unis (unis): thanks!
----------------------------------------------
==========
|
作者: |
tn987 (tn987) |
▲▲▲▲△ |
-
|
普通会员 |
|
2018/12/12 9:03:37 |
4楼: |
按照2楼的方法,搞不定 smartdata,你搞定了吗?
----------------------------------------------
-
|
作者: |
unis (unis) |
▲▲▲▲△ |
-
|
普通会员 |
|
2018/12/12 21:27:00 |
5楼: |
4楼 use this
#if defined(_WIN64) extern "C" long lseek(int, long, int); extern "C" long _lseek(int fd, long offset, int origin) { return lseek(fd, offset, origin); } #endif
----------------------------------------------
-
|
作者: |
tn987 (tn987) |
▲▲▲▲△ |
-
|
普通会员 |
|
2018/12/12 22:11:19 |
6楼: |
unis (unis),谢谢牛人,终于搞定了
----------------------------------------------
-
|
|