Finding Problem

Post Reply
Arindam
Posts: 44
Joined: Sat Jul 29, 2006 5:03 pm
Location: Kolkata, India

Finding Problem

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Arindam,

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

Antonio Linares
www.fivetechsoft.com
Arindam
Posts: 44
Joined: Sat Jul 29, 2006 5:03 pm
Location: Kolkata, India

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Arindam,

Are you using Microsoft C ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Arindam
Posts: 44
Joined: Sat Jul 29, 2006 5:03 pm
Location: Kolkata, India

Post by Arindam »

Mr Antonio,

I am using Microsoft Visual C++.

With regard
Arindam
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Arindam,

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

Antonio Linares
www.fivetechsoft.com
Arindam
Posts: 44
Joined: Sat Jul 29, 2006 5:03 pm
Location: Kolkata, India

Post 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
Post Reply