Link errors when build ImageMagick-6.7.3 source files

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
xiangsky
Posts: 2
Joined: 2011-11-06T07:03:44-07:00
Authentication code: 8675308

Link errors when build ImageMagick-6.7.3 source files

Post 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 !
jpiquemal
Posts: 54
Joined: 2003-12-07T01:57:19-07:00

Re: Link errors when build ImageMagick-6.7.3 source files

Post by jpiquemal »

Hello
_wstat64 does not exists in VC6.
Use GetFileAttributesExW instead.

(it's in utility-private.h)
jean
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Link errors when build ImageMagick-6.7.3 source files

Post by magick »

We'll investigate and get a patch into the next point release of ImageMagick. Thanks.
xiangsky
Posts: 2
Joined: 2011-11-06T07:03:44-07:00
Authentication code: 8675308

Re: Link errors when build ImageMagick-6.7.3 source files

Post 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?
Post Reply