find out libjpeg version at runtime (or other ways to prevent aborts)?
问题 my application uses libjpeg to read/write JPEG-images. everything worked fine recently my app started to crash when trying to write JPEG images with an error "Wrong JPEG library version: library is 80, caller expects 62" when calling jpeg_create_compress() (so the crash seems to be an intentional abort on the libjpeg side rather than a segfault) a bit of investigation showed that indeed my application was compiled against libjpeg-62 headers (that were installed in /usr/local/include) and was