c - Compiling libjpeg on Windows using cygwin? -


which best way compile libjpeg on windows machine? should use microsoft visual studio or can use else cygwin?

note: when use cygwin , copy makefile.vc makefile, jconfig.vc jconfig.h , run sample code: http://www.cim.mcgill.ca/~junaed/code/libjpeg_sample.tar.gz

then compiler produces following errors:

$ gcc main.c c:\cygwin\tmp\ccwchyey.o:main.c:(.text+0x5a): undefined reference `jpeg_std_error' c:\cygwin\tmp\ccwchyey.o:main.c:(.text+0x7e): undefined reference `jpeg_createdecompress' c:\cygwin\tmp\ccwchyey.o:main.c:(.text+0x93): undefined reference `jpeg_stdio_src' c:\cygwin\tmp\ccwchyey.o:main.c:(.text+0xa9): undefined reference `jpeg_read_header' c:\cygwin\tmp\ccwchyey.o:main.c:(.text+0xb7): undefined reference `jpeg_start_decompress' c:\cygwin\tmp\ccwchyey.o:main.c:(.text+0x11b): undefined reference `jpeg_read_scanlines' c:\cygwin\tmp\ccwchyey.o:main.c:(.text+0x178): undefined reference `jpeg_finish_decompress' c:\cygwin\tmp\ccwchyey.o:main.c:(.text+0x186): undefined reference `jpeg_destroy_decompress' c:\cygwin\tmp\ccwchyey.o:main.c:(.text+0x1f6): undefined reference `jpeg_std_error' c:\cygwin\tmp\ccwchyey.o:main.c:(.text+0x21a): undefined reference `jpeg_createcompress' c:\cygwin\tmp\ccwchyey.o:main.c:(.text+0x22f): undefined reference `jpeg_stdio_dest' c:\cygwin\tmp\ccwchyey.o:main.c:(.text+0x269): undefined reference `jpeg_set_defaults' c:\cygwin\tmp\ccwchyey.o:main.c:(.text+0x27f): undefined reference `jpeg_start_compress' c:\cygwin\tmp\ccwchyey.o:main.c:(.text+0x2c7): undefined reference `jpeg_write_scanlines' c:\cygwin\tmp\ccwchyey.o:main.c:(.text+0x2e5): undefined reference `jpeg_finish_compress' c:\cygwin\tmp\ccwchyey.o:main.c:(.text+0x2f3): undefined reference `jpeg_destroy_compress' collect2.exe: error: ld returned 1 exit status 

well, if want .dll compiled.

https://cygwin.com/cgi-bin2/package-grep.cgi?grep=libjpeg&arch=x86_64


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -