I have to create static library for jpeglib software (based on Linux).
The static library should be created for msvc 2017, windows 10.
The procedure I have followed is given:
http://www.dahlsys.com/misc/compiling_ijg_libjpeg/index.html
and
https://stackoverflow.com/questions/12652178/compiling-libjpeg
I have created jpeg.lib. dumpbin reads its functions. I have place it in right place for linking. However, build stops because of error:
Error LNK2019 unresolved external symbol jpeg_std_error referenced in function
"int __cdecl decode_JPEG_data(unsigned char *,int,int &,int &,unsigned char *,int &,bool)"....
Error LNK2019 unresolved external symbol jpeg_CreateDecompress referenced in function
"int __cdecl decode_JPEG_data(unsigned char *,int,int &,int &,unsigned char *,int &,bool)" ....
In Miprograms for Viusal studio I have installed windows 10 SDK (10.0.4393.0).
I do not know what could be the problem? These are instruction I followed:
"Download the file WIN32.MAK (for example, from
http://www.bvbcode.com/code/f2kivdrh-395674-down), and place a copy in the root source code directory (possibly C:\jpeg-9, but it depends where you unzipped it). I will refer to this directory as %jpegsrc% from now on. Having this file is important; otherwise step 3 will produce an error." I suspect that this file might the problem. What should I do?