Page 1 of 1

Ubuntu 12.10 - linker errors (undefined reference)

Posted: 2013-06-16T23:35:47-07:00
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.

Re: Ubuntu 12.10 - linker errors (undefined reference)

Posted: 2013-09-06T15:13:01-07:00
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.