-DATS_MEMALLOC_LIBC

You need the above flag when using patscc. It is the default for myatscc.

On Sunday, July 28, 2024 at 10:18:58 AM UTC-4 CC (corrodedCrustacean) wrote:

> Hello,
> I've recently discovered ATS and I'm following the introduction guide. I'm 
> having trouble compiling with patscc (myatscc works, but only for a single 
> source file) when a boxed value or a closure is defined.
>
> Example:
>
> #include "share/atspre_staload.hats"
> val _ = '(0)
> implement main0 () = print "hello"
>
> When I compile with patscc I get the following error:
>
> main_dats.c:(.text+0x10b): undefined reference to `atsruntime_malloc_undef'
>
> I've installed ats2 with nix; according to patsopt I'm using version 0.4.2
>

-- 
You received this message because you are subscribed to the Google Groups 
"ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ats-lang-users/6500dee4-aac8-4063-8d95-ec39d907bf18n%40googlegroups.com.

Reply via email to