Page 1 of 1

Module tests providing int main()

Posted: 2015-09-14T06:25:59-07:00
by tc33
The following modules are providing their own int main() for testing. These functions are interfering with my own unit tests (via Boost). Environment: IM 6.9.2-0, static link, MSVC 14, Windows.

- OpenJPEG / t1_generate_luts.c
- libPNG / pngtest.c

Excluding these files from the respective projects and then rebuilding solves the issue. IM may want to remove these files from their respective projects so that IM can be built/used successfully.

Thanks!

Re: Module tests providing int main()

Posted: 2015-09-14T12:15:37-07:00
by dlemstra
Those files should be excluded and I just pushed a patch to our GIT repository to fix this. These files will no longer be included in the next release of ImageMagick. Thank you for reporting this issue.