svalente317 / sanka

Sanka programming language compiler
1 stars 2 forks source link

how to build #1

Closed johnv02139 closed 6 years ago

johnv02139 commented 6 years ago
gcc -I /opt/sanka/include -I../.. WordMap.c -L /opt/sanka/lib -lsankaruntime

Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
     (maybe you meant: _WordMap__main)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Then again, I may never have compiled a C program on this computer...

johnv02139 commented 6 years ago

The Makefile in example now shows how to simply compile a Sanka program to an executable.