patscc -o main main.dats
compiles fine on macOS Sierra Version 10.12.4 when it's not boxed, however when i box it the following error is thrown:
Undefined symbols for architecture x86_64:
"_atsruntime_malloc_undef", referenced from:
__057_Users_057_ibnShahid_057_research_057_ats_057_2_057_2_056_7_Tuples_and_Tuple_Types_057_main_056_dats__dynload in main_dats-067d86.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
heres the source code (main.dats):
#include "share/atspre_define.hats"
#include "share/atspre_staload.hats"
val area = PI * radius * radius where {
val PI = 3.14 and radius = 10.0 // simultaneous bindings
} // end of [where] // end of [val]
val xyz = ( 'A', 1, 2.0 )
val x = xyz.0 and y = xyz.1 and z = xyz.2
// val (x, y, z) = xyz
var _ = print (area)
implement main0 () = () // a dummy for [main]