koka-lang / libhandler

Libhandler implements algebraic effects and handlers in portable C99. Monads for free in C.
Other
187 stars 15 forks source link

Linker Issue when using libhandler #10

Open paulshaoyuqiao opened 5 years ago

paulshaoyuqiao commented 5 years ago

Hi, when I was trying to build a project that uses libhandler on Mac (Mojavae), it causes the following error:

Undefined symbols for architecture x86_64:
  "_lh_check_value_ptr", referenced from:
      _prt_receive in PrtExecution.c.o
      _receive_handler_action in PrtExecution.c.o
      _prt_receive_handler in PrtExecution.c.o
      _PrtResume in PrtExecution.c.o
  "_lh_handle", referenced from:
      _prt_receive_handler in PrtExecution.c.o
  "_lh_register_malloc", referenced from:
      _PrtInstallProgram in PrtExecution.c.o
  "_lh_release_resume", referenced from:
      _PrtResume in PrtExecution.c.o
  "_lh_yield", referenced from:
      _prt_receive in PrtExecution.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)