Question

I am Working on Windows Vista, and have the following code:

#include <windows.h>

// ...

INT vint = NULL;

vint = LZOpenFile(lpFileName,lpReOpenBuf,wStyle);

When I build my program, it fails with linking errors:

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....

Was it helpful?

Solution

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

OTHER TIPS

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......

To link against Lz32.lib in MS Visual 2008:

Project --> Properties

Then see in --> Linker --> Input

And in Additional Dependencies simply add Lz32.lib

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top