Closed theronic closed 5 years ago
I managed to get things going by setting compiler to gcc, but I don't know how to make it stick?
(Project.config "compiler" "gcc")
--important-flag didn't work
Hi!
You can make it stick by putting a file at ~/.carp/profile.carp
(we should document this better, sorry)
Also, Clang should work if it knows it should use C99. Perhaps we need to send that flag as default..?
We could alternatively also just define the macros bool
, true
, and false
ourselves to get rid of the header (that’s basically all it does anyway).
This would make the program more portable; the header is prefixed with std
, but it isn’t actually super portable.
That's a good idea, lets do that! I think we still need to enforce C99 though, it's what the emitted code expects.
Is that a lower bound or a constraint?
Lower bound.
This should be fixed by #334. @theronic if you want you can pull the latest version and play around with it; do tell us if there are any other issues!
I'll close this for now...
Hello! I'm trying to get Carp going on OS X. I followed all the installation steps, but trying to eval anything throws a "stdbool.h" not found error. I assume Carp is trying to use clang, which I have installed. Running
clang -v
shows:clang version 6.0.1 (emscripten 1.38.12 : 1.38.12) Target: x86_64-apple-darwin17.7.0 Thread model: posix InstalledDir: /Users/petrus/Projects/wallfly/emsdk/clang/e1.38.12_64bit
The Error:
I'm sure this is not a Carp-specific issue, but I have no recourse to solve it.