views:

57

answers:

2

i am Working on MS VISTA ...here i include windows.h also....

INT vint = NULL;

vint = LZOpenFile(lpFileName,lpReOpenBuf,wStyle);

when i compile my program ,error like, fatal error LNK2019: unresolved external symbol _LZOpenFileW@12 referenced in function "int_stdcall LZOpenFile(wchar_t *,struct _OFSTRUCT *,unsigned short)" (?LZOpenFile@@YGHPA_WPAU_OFSTRUCT@@G@Z)

fatal error LNK1120: 1 unresolved externals

help me to resolve this problem ..Thanks in Advance....

+2  A: 

You need to link against Lz32.lib. Make sure you have this lib listed in your linking options.

Matthew Talbert
ok...how can i find out Lz32.lib in linker properties
Rajakumar
Matthew Talbert ,how can i find out Lz32.lib in linker properties...
Rajakumar
+1  A: 

thank you, Matthew Talbert first select properties from solution explorer (right click),select linker options and then select command line options ,insert Lz32.lib on that place ......now build succeed without any fatal error......

Rajakumar