[MLton-user] Problem CallingFromCToSML
digaots at gmail.com
Fri Jun 19 07:04:40 PDT 2009
I am trying to reproduce the example provided at the page
http://mlton.org/CallingFromCToSML without lucky.
I am getting the following error:
%% mlton -default-ann 'allowFFI true' export.sml ffi-export.o
/tmp/fileCdFGgC.o: In function `L_7':
(.text +0x1f80): undefined reference to `MLton_FFI_Int8'
collect2: ld returned 1 exit status
call to system failed with exit status 1:
gcc -o export /tmp/fileK4YlnF.o /tmp/fileCdFGgC.o ffi-export.o
-L/usr/lib/mlton/self -lmlton -lgdtoa -lm -lgmp
I have been looking over the web for this error and i haven't found
Any help is appreciated.
Thanks in avance,
More information about the MLton-user