Thanks Dan, that did the trick. I used val_number and dynamiclib and
commented out a line in nMagick.c and it compiled.
I still haven't tried to see if the lib actually works, but for now
the size of
the .ndll is 53K.
I will do some test tonight (hopefully), and then maybe I will be
able to get
going on finalizing the haxe code.
M.
On Feb 23, 2007, at 5:44 PM, daniel fischer wrote:
Marcus Bergstrom <[EMAIL PROTECTED]> (on Fri, 23 Feb 2007
16:46:04 +0100):
gcc -shared -lneko -lWand -lMagick -o nMagick.ndll nMagick.o
i686-apple-darwin8-gcc-4.0.1: unrecognized option '-shared'
/usr/bin/ld: Undefined symbols:
_main
_MagickThumbnail
_val_double
collect2: ld returned 1 exit status
Anyone got a clue?
maybe, try replacing "-shared" with "-dynamiclib" in the command
line, that should get rid of the _main symbol. (thanks apple)
val_double doesn't exist in neko. try val_float or val_number. the
compiler seems to take undefined symbols as returning int, but the
linker then complains.
about MagickThumbnail, i don't know. see if it actually exists in
your imagemagick headers-- if not, just remove it from nMagick for
now...
-dan
--
http://0xDF.com/
http://iterative.org/
--
Neko : One VM to run them all
(http://nekovm.org)
--
Neko : One VM to run them all
(http://nekovm.org)