[MLton-user] Problem CallingFromCToSML

Rodrigo Saad digaots at gmail.com
Fri Jun 19 07:04:40 PDT 2009


Hello,

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
anything useful.
Any help is appreciated.

Thanks in avance,

Rodrigo Saad



More information about the MLton-user mailing list