plum-umd / the-838e-compiler

Compiler for CMSC 838E
2 stars 0 forks source link

Fix compilation issues #23

Closed 8tx7K38ej1aBTKWK closed 3 years ago

8tx7K38ej1aBTKWK commented 3 years ago

I had some linking issue on my Arch Linux machine.

Global variables in runtime.h will be defined multiple times if the header is included twice. I moved the definitions to main.c and used extern explicitly in runtime.h to avoid this linking issue.

I also added some build instructions for libunistring on Arch Linux, along with some makefile fixes.

dvanhorn commented 3 years ago

Thanks!