Unable to compile under Linux and Windows

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
erotavlas_turbo

Unable to compile under Linux and Windows

Post by erotavlas_turbo »

Hi,

I would like to write a C program that replicate the command convert (viewtopic.php?f=1&t=15115). Now i'm trying to compile under Linux and Windows but the results are not good.

Under Windows Visual Studio 2008 I have a lot of error but i think that the problem is the same as viewtopic.php?f=6&t=11757.

Under Linux (gcc compiler or Codeblock IDE with same compiler) i get the following error

Code: Select all

prova.c:2:30: error: wand/magick_wand.h: Nessun file o directory
The code is the same as Windows and i don't know why i can't find the file...the path is

/magick/magick_wand.h
/wand
/source code example.c

thank you
erotavlas_turbo

Re: Unable to compile under Linux and Windows

Post by erotavlas_turbo »

if i try to compile the example wand.c at http://www.imagemagick.org/script/magick-wand.php

it works well...
Post Reply