Page 1 of 1

entry point not found

Posted: 2011-11-19T17:53:51-07:00
by xentrica
I upgraded my ImageMagick++ to the latset version libraries to try to resolve an issue with Photoshop exported TIFF files.

I am getting "procedure entry point ??0Geometry@Magick@@QAE@IIII_N0@Z could not be located in the dynamic link library CORE_RL_Magick++_.dll"

What does this mean?

Re: entry point not found

Posted: 2011-11-20T05:52:26-07:00
by adelphia
That basically means that the command you are trying to execute can't be found in the DLL. Did you update the full package?

Re: entry point not found

Posted: 2011-11-20T07:06:18-07:00
by xentrica
"procedure entry point ??0Geometry@Magick@@QAE@IIII_N0@Z could not be located in the dynamic link library CORE_RL_Magick++_.dll"

Does that mean its looking in CORE_RL_Magick++_.dll for another .dll? I would think since I replaced all the ImageMagick dll that they would have all they need. Just trying to find out if it's my code calling ImageMagick wrong.

I created a custom c++ extension that utilizes the Magick++ libraries. I assumed that I could just upgrade the libraries. Am I wrong. Do I need to chamge my code or/and recompile my c++ extension? Has anything changed the way you initialize and utilize the ImageMagick libraries in c++?

Re: entry point not found

Posted: 2011-11-25T11:08:02-07:00
by xentrica
I am trying to recompile my C++ extension and found this:

Right click on the project name and select Properties and then modify the following options:
- In C/C++|General: In "Additional Include Directories" add the path to your include directory - something like "C:\Program Files\ImageMagick-6.3.0-Q16\include"
- In Linker|General: Add the additional library directory C:\Program Files\ImageMagick-6.3.0-Q16\lib
- In Linker|Input: Add the Additional Dependencies CORE_RL_magick_.lib CORE_RL_wand_.lib CORE_RL_Magick++_.lib

My compiler will not recognize the path I give to Magick++.h.

fatal error C1083: Cannot open include file: '<Magick++.h>': No such file or directory

In ImageMagick-6.7.3-7/Magick++ i see a lib folder and Magick++.h in it.
But I do not see an include folder.

What am I doing wrong?

I am using VC 2005.

Re: entry point not found

Posted: 2011-11-25T11:17:20-07:00
by magick
Consider upgrading. The latest release is ImageMagick 6.7.3-8.

You should have a Magick++ folder in C:\Program Files\ImageMagick-6.3.0-Q16\include. Inspect this folder. Did you find Magick++.h? If so, change your configuration parameters for your IDE to point to this folder. If you have correct settings, your compiler should be able to grok the include header as:
  • #include <Magick++.h>

Re: entry point not found

Posted: 2011-11-25T11:29:58-07:00
by xentrica
I don't have a problem upgrading to 6.7.3-8, but in 6.7.3-7 there does not seem to be an include folder. Will that change with 6.7.3.8?

Re: entry point not found

Posted: 2011-11-25T11:38:28-07:00
by magick
When you install ImageMagick under Windows, you need to check the 'include header files' option in the installer otherwise Magick++.h will not be installed.

Re: entry point not found

Posted: 2011-11-25T12:43:28-07:00
by xentrica
I have upgraded to latest, installed with developer headers, I see those folders now. Pointed my IDE to those folders and I still get:

fatal error C1083: Cannot open include file: '<Magick++.h>': No such file or directory

Re: entry point not found

Posted: 2011-11-25T12:46:50-07:00
by magick
Is Magick++ in the include/Magick++ folder? If so, you need to properly configure your IDE.

Re: entry point not found

Posted: 2011-11-25T13:00:08-07:00
by xentrica
I see Magick++.h in the include folder, and have my IDE pointing to that include folder.

my IDE settings are:

- In C/C++|General: In "Additional Include Directories" add the path to your include directory - something like "C:\Program Files\ImageMagick-6.7.3-Q16\include"
- In Linker|General: Add the additional library directory C:\Program Files\ImageMagick-6.7.3-Q16\lib
- In Linker|Input: Add the Additional Dependencies CORE_RL_magick_.lib CORE_RL_wand_.lib CORE_RL_Magick++_.lib

Re: entry point not found

Posted: 2011-11-25T13:35:11-07:00
by magick
Look inside Program Files/ImageMagick-6.7.3-8/Magick++_demos. This folder has a number of ready to build / run Magick++ demos. For example, click on the Button project. Build and run. Now use this project as a template for your own project.

Re: entry point not found

Posted: 2011-11-25T17:51:05-07:00
by xentrica
Thanks, think that helped a bit with the pathing.

Oddly it compiles, albeit with a bunch of warnings, if I use:

#include "Magick++.h"

I would think

#include <"Magick++.h>"

is right since my ImageMagick and VC2005 directories are different.

And of course the compiled extension does not work. I get an procedure entry point Geometry@Magick not found in dll CORE_RL_Magick++_.dll error