Page 1 of 1

Link errors when build ImageMagick-6.7.3 source files

Posted: 2011-11-10T06:32:30-07:00
by xiangsky
Hi
I'm new of ImageMagick. I want to build my own project using C++ API of ImageMagick. So I download the source files of ImageMagick-6.7.3 and build Dynamic Multi-threaded DLL following the URL http://www.imagemagick.org/script/insta ... hp#windows. But I got the following link errors.

Linking...
Creating library ..\lib\CORE_DB_magick_.lib and object ..\lib\CORE_DB_magick_.exp
utility.obj : error LNK2001: unresolved external symbol __wstat64
..\bin\CORE_DB_magick_.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

I use Visual C++ 6.0 SP6 IDE on Windows XP. Is the version of VC and Windows the reason to make these problems? any ideas? Thanks !

Re: Link errors when build ImageMagick-6.7.3 source files

Posted: 2011-11-17T03:08:27-07:00
by jpiquemal
Hello
_wstat64 does not exists in VC6.
Use GetFileAttributesExW instead.

(it's in utility-private.h)
jean

Re: Link errors when build ImageMagick-6.7.3 source files

Posted: 2011-11-17T05:29:04-07:00
by magick
We'll investigate and get a patch into the next point release of ImageMagick. Thanks.

Re: Link errors when build ImageMagick-6.7.3 source files

Posted: 2011-11-19T20:59:21-07:00
by xiangsky
to jpiquemal,I use _wstat instead of _wstat64, now it's OK ,thank you!

to magick, when will be the next patch release?