Small problems?

ANOQ of the Sun anoq@hardcoreprocessing.com
Fri, 05 Nov 1999 18:07:26 +0100


Hello!


I still get a complaint from the compiler when trying to
crosscompile an application:

mlton Source.sml
/home/anoq/workCVS/Projects/HardcoreProcessing/MLSDL/srcC/MLTon/SDLFuncs/SDLFuncs.o
-D_WIN32 -lmingw32 -mwindows -L/usr/local/lib -lSDL
/usr/local/devtools/ML/MLTon/mlton-1999-7-12_ToWin/lib/libmlton.a(mlton-lib.o)(.text+0x607):mlton-lib.c:
undefined reference to MLTON_overflow'
/usr/local/devtools/ML/MLTon/mlton-1999-7-12_ToWin/lib/libmlton.a(mlton-lib.o)(.text+0x61b):mlton-lib.c:
undefined reference to MLTON_overflow'
/usr/local/devtools/ML/MLTon/mlton-1999-7-12_ToWin/lib/libmlton.a(mlton-lib.o)(.text+0x630):mlton-lib.c:
undefined reference to MLTON_overflow'
collect2: ld returned 1 exit status
Error: call to system failed: gcc
-I/usr/local/devtools/ML/MLTon/mlton-1999-7-12_ToWin/include
-L/usr/local/devtools/ML/MLTon/mlton-1999-7-12_ToWin/lib  -O1 -w
-fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2
-malign-jumps=2 -malign-functions=2 -o
/home/anoq/workCVS/Projects/vef/ActionMemory/srcSML/Source
/tmp/04972baa.o
-lmlton -lgmp
/home/anoq/workCVS/Projects/HardcoreProcessing/MLSDL/srcC/MLTon/SDLFuncs/SDLFuncs.o
-D_WIN32 -lmingw32 -mwindows -L/usr/local/lib -lSDL
make: *** [Source] Error 1


The function MLTON_overflow is there, but I see there are 3 functions
with
assembler code, and it looks like jumps to an MLTON_overflow label.
Any ideas as to what I can do about this?

Later I suspect that I will also run into the well known main function
problem. In Windows applications, the main function must be
WinMain - and I think it even has different arguments than the usual
C main function. Where should I modify the compiler to change this?


Cheers
-- 
http://www.HardcoreProcessing.com