Page 1 of 1

Finding Problem

PostPosted: Mon Sep 04, 2006 4:34 am
by Arindam
Hi,

While I am compiling Samples\install.prg, getting the following three errors :

Creating library install.lib and object install.exp
FiveHCM.lib(LZEXPAND.obj) : error LNK2001: unresolved external symbol _LZClose@4

FiveHCM.lib(LZEXPAND.obj) : error LNK2001: unresolved external symbol _LZCopy@8
FiveHCM.lib(LZEXPAND.obj) : error LNK2001: unresolved external symbol _LZOpenFil
eA@12
install.exe : fatal error LNK1120: 3 unresolved externals

If I mark all the lines LZCopyFile(.....), then compiling smoothly.

What could be the reason and how can I solve this ?

Arindam

PostPosted: Mon Sep 04, 2006 8:52 am
by Antonio Linares
Arindam,

You have to link c:\bcc55\lib\PSDK\lz32.lib too

PostPosted: Fri Sep 15, 2006 1:26 pm
by Arindam
Dear Mr. Antonio,

After linking lz32.lib, the result is as follows :

install.c
d:\borland\bcc55\lib\psdk\lz32.lib : warning LNK4033: converting object format f
rom OMF to COFF
rtl.lib(math.obj) : warning LNK4006: __matherr already defined in LIBC.lib(mathe
rr.obj); second definition ignored
d:\borland\bcc55\lib\psdk\lz32.lib : warning LNK4033: converting object format f
rom OMF to COFF
rtl.lib(math.obj) : warning LNK4006: __matherr already defined in LIBC.lib(mathe
rr.obj); second definition ignored
Creating library install.lib and object install.exp
FiveHCM.lib(LZEXPAND.obj) : error LNK2001: unresolved external symbol _LZClose@4

FiveHCM.lib(LZEXPAND.obj) : error LNK2001: unresolved external symbol _LZCopy@8
FiveHCM.lib(LZEXPAND.obj) : error LNK2001: unresolved external symbol _LZOpenFil
eA@12
install.exe : fatal error LNK1120: 3 unresolved externals
* There are errors

With regard
Arindam

PostPosted: Fri Sep 15, 2006 4:53 pm
by Antonio Linares
Arindam,

Are you using Microsoft C ?

PostPosted: Sat Sep 16, 2006 7:14 am
by Arindam
Mr Antonio,

I am using Microsoft Visual C++.

With regard
Arindam

PostPosted: Sat Sep 16, 2006 8:53 am
by Antonio Linares
Arindam,

Then you should use Microsoft LZ32.lib and not Borland's one.

PostPosted: Sat Sep 16, 2006 12:30 pm
by Arindam
Mr. Antonio

Thanks...........................

May be a small tip but has great utility. I am expecting more and more tips, which are not available in manual but play an importent role.

With regard,
Arindam