Unresolved External Symbol Visual Studio 2008

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
mrtm3050
Posts: 11
Joined: 2010-06-25T08:20:50-07:00
Authentication code: 8675308

Unresolved External Symbol Visual Studio 2008

Post by mrtm3050 »

Hey guys,

Newbie to ImageMagick. I am trying to compile it with VS 2008 version (6.6.2-7) with windows 7. I built and ran the configure sln in release mode. Everything complies except for 12 of my UTIL projects. The following errors occur when I compile it:

Code: Select all

Error	79	error LNK2019: unresolved external symbol __imp__AnimateImageCommand referenced in function _main	animate.obj
Error	82	error LNK2019: unresolved external symbol __imp__CompareImageCommand referenced in function _main	compare.obj
Error	71	error LNK2019: unresolved external symbol __imp__CompareImageCommand referenced in function _ValidateCompareCommand	validate.obj
Error	85	error LNK2019: unresolved external symbol __imp__CompositeImageCommand referenced in function _main	composite.obj
Error	72	error LNK2019: unresolved external symbol __imp__CompositeImageCommand referenced in function _ValidateCompositeCommand	validate.obj
Error	88	error LNK2019: unresolved external symbol __imp__ConjureImageCommand referenced in function _main	conjure.obj
Error	91	error LNK2019: unresolved external symbol __imp__ConvertImageCommand referenced in function _main	convert.obj
Error	73	error LNK2019: unresolved external symbol __imp__ConvertImageCommand referenced in function _ValidateConvertCommand	validate.obj
Error	94	error LNK2019: unresolved external symbol __imp__DisplayImageCommand referenced in function _main	display.obj
Error	97	error LNK2019: unresolved external symbol __imp__IdentifyImageCommand referenced in function _main	identify.obj
Error	74	error LNK2019: unresolved external symbol __imp__IdentifyImageCommand referenced in function _ValidateIdentifyCommand	validate.obj
Error	100	error LNK2019: unresolved external symbol __imp__ImportImageCommand referenced in function _main	import.obj
Error	78	error LNK2019: unresolved external symbol __imp__MagickCommandGenesis referenced in function _main	animate.obj
Error	81	error LNK2019: unresolved external symbol __imp__MagickCommandGenesis referenced in function _main	compare.obj
Error	84	error LNK2019: unresolved external symbol __imp__MagickCommandGenesis referenced in function _main	composite.obj
Error	87	error LNK2019: unresolved external symbol __imp__MagickCommandGenesis referenced in function _main	conjure.obj
Error	90	error LNK2019: unresolved external symbol __imp__MagickCommandGenesis referenced in function _main	convert.obj
Error	93	error LNK2019: unresolved external symbol __imp__MagickCommandGenesis referenced in function _main	display.obj
Error	96	error LNK2019: unresolved external symbol __imp__MagickCommandGenesis referenced in function _main	identify.obj
Error	99	error LNK2019: unresolved external symbol __imp__MagickCommandGenesis referenced in function _main	import.obj
Error	102	error LNK2019: unresolved external symbol __imp__MagickCommandGenesis referenced in function _main	montage.obj
Error	103	error LNK2019: unresolved external symbol __imp__MagickCommandGenesis referenced in function _main	mogrify.obj
Error	108	error LNK2019: unresolved external symbol __imp__MagickCommandGenesis referenced in function _main	stream.obj
Error	105	error LNK2019: unresolved external symbol __imp__MogrifyImageCommand referenced in function _main	mogrify.obj
Error	104	error LNK2019: unresolved external symbol __imp__MontageImageCommand referenced in function _main	montage.obj
Error	75	error LNK2019: unresolved external symbol __imp__MontageImageCommand referenced in function _ValidateMontageCommand	validate.obj
Error	109	error LNK2019: unresolved external symbol __imp__StreamImageCommand referenced in function _main	stream.obj
Error	76	error LNK2019: unresolved external symbol __imp__StreamImageCommand referenced in function _ValidateStreamCommand	validate.obj
Error	80	fatal error LNK1120: 2 unresolved externals	c:\ImageMagick\VisualMagick\bin\UTIL_RL_animate_.exe
Error	83	fatal error LNK1120: 2 unresolved externals	c:\ImageMagick\VisualMagick\bin\UTIL_RL_compare_.exe
Error	86	fatal error LNK1120: 2 unresolved externals	c:\ImageMagick\VisualMagick\bin\UTIL_RL_composite_.exe
Error	89	fatal error LNK1120: 2 unresolved externals	c:\ImageMagick\VisualMagick\bin\UTIL_RL_conjure_.exe
Error	92	fatal error LNK1120: 2 unresolved externals	c:\ImageMagick\VisualMagick\bin\UTIL_RL_convert_.exe
Error	95	fatal error LNK1120: 2 unresolved externals	c:\ImageMagick\VisualMagick\bin\UTIL_RL_display_.exe
Error	98	fatal error LNK1120: 2 unresolved externals	c:\ImageMagick\VisualMagick\bin\UTIL_RL_identify_.exe
Error	101	fatal error LNK1120: 2 unresolved externals	c:\ImageMagick\VisualMagick\bin\UTIL_RL_import_.exe
Error	106	fatal error LNK1120: 2 unresolved externals	c:\ImageMagick\VisualMagick\bin\UTIL_RL_montage_.exe
Error	107	fatal error LNK1120: 2 unresolved externals	c:\ImageMagick\VisualMagick\bin\UTIL_RL_mogrify_.exe
Error	110	fatal error LNK1120: 2 unresolved externals	c:\ImageMagick\VisualMagick\bin\UTIL_RL_stream_.exe
Error	77	fatal error LNK1120: 6 unresolved externals	c:\ImageMagick\VisualMagick\bin\UTIL_RL_validate_.exe

For example, one of the errors I receive is it cant link to the AnimateImageCommand. The Util_animate project's animate.c file references:

Code: Select all

extern WandExport MagickBooleanType
  AnimateImageCommand(ImageInfo *,int,char **,char **,ExceptionInfo *);
in the animate.h file. When I do a "Go to Defintion" in the extern command above for the AnimateImageCommand, it finds the function in animate.c that is in the Wand directory. Probably something I'm forgetting to do here or not properly linking in the project's properties. Any ideas?
mrtm3050
Posts: 11
Joined: 2010-06-25T08:20:50-07:00
Authentication code: 8675308

Re: Unresolved External Symbol Visual Studio 2008

Post by mrtm3050 »

Default options should work fine in the configure.exe wizard.

If anyone wants to know how to fix the above problems, you have to make sure to include the CORE_WAND lib files in properties | linker.
Post Reply