Module tests providing int main()

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
tc33
Posts: 40
Joined: 2012-10-21T22:10:21-07:00
Authentication code: 67789

Module tests providing int main()

Post 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!
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Module tests providing int main()

Post 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.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply