[MLton-user] Library segfault (GC_switchToThread)

Wesley W. Terpstra wesley at terpstra.ca
Thu Feb 17 07:33:44 PST 2011


On Wed, Feb 16, 2011 at 2:45 PM, Alexandre Hamez
<alexandre.hamez at gmail.com>wrote:

> > int main( int argc, char** argv ) {
>

missing: foo_open(argc, argv);


> >   int res = foo(1);
> >   printf("%d\n",res);
> >
>

missing: foo_close();


> >   return 0;
> > }
>

Hope that helps.

PS.: Why stripping 'lib' in the name of the generated library?
>

It's been a while since I used Mac OS, but I guess that libraries in
/usr/lib and /lib don't have a lib prefix for .dylib files?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mlton.org/pipermail/mlton-user/attachments/20110217/2239bebe/attachment.htm


More information about the MLton-user mailing list