entry point not found

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
xentrica
Posts: 18
Joined: 2011-02-13T21:30:57-07:00
Authentication code: 8675308

entry point not found

Post 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?
User avatar
adelphia
Posts: 3
Joined: 2011-11-19T07:25:25-07:00
Authentication code: 8675308

Re: entry point not found

Post 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?
Image
xentrica
Posts: 18
Joined: 2011-02-13T21:30:57-07:00
Authentication code: 8675308

Re: entry point not found

Post 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++?
xentrica
Posts: 18
Joined: 2011-02-13T21:30:57-07:00
Authentication code: 8675308

Re: entry point not found

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: entry point not found

Post 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>
xentrica
Posts: 18
Joined: 2011-02-13T21:30:57-07:00
Authentication code: 8675308

Re: entry point not found

Post 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?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: entry point not found

Post 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.
xentrica
Posts: 18
Joined: 2011-02-13T21:30:57-07:00
Authentication code: 8675308

Re: entry point not found

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: entry point not found

Post by magick »

Is Magick++ in the include/Magick++ folder? If so, you need to properly configure your IDE.
xentrica
Posts: 18
Joined: 2011-02-13T21:30:57-07:00
Authentication code: 8675308

Re: entry point not found

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: entry point not found

Post 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.
xentrica
Posts: 18
Joined: 2011-02-13T21:30:57-07:00
Authentication code: 8675308

Re: entry point not found

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