Ubuntu 12.10 - linker errors (undefined reference)

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
szczurcio
Posts: 1
Joined: 2013-06-16T23:14:48-07:00
Authentication code: 6789

Ubuntu 12.10 - linker errors (undefined reference)

Post by szczurcio »

Hi,errors
I've been trying to install MagickWand on my Ubuntu 12.10 using apt-get install imagemagick libmagickwand-dev. The installation completes without any errros, but when I tried to compile the example program from this page: http://imagemagick.org/script/magick-wand.php using that command I get linker errors:
undefined reference to .... and then all the imagemagick stuff, practically everything but just pure C.

Any help would be appreciated.
swp
Posts: 3
Joined: 2013-09-06T11:06:54-07:00
Authentication code: 6789

Re: Ubuntu 12.10 - linker errors (undefined reference)

Post by swp »

I'm on Ubuntu 13.04 and compiling wand.c works fine. But copy-pasting the code from that page somehow loses all the newlines, and you have to restore some of the newlines before it will compile (especially the #include and #define lines). If it still won't compile, show the entire error message.
Post Reply