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]
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ats-lang-users/43194d4d-0d1e-4c85-9144-446e1cfa6a7e%40googlegroups.com.