jiffy
jiffy copied to clipboard
use rebar3 cannot to compile
i cannot compile project when use jiffy by rebar3.the wrong message is that cannot find the assert.h
I wonder if it's related to https://github.com/davisp/jiffy/issues/215#issuecomment-2161609879?
Are you compiling it on Windows, by chance?
I cannot compile on MacOS M1 (rebar3):
c_src/decoder.c:4:10: fatal error: 'assert.h' file not found 4 | #include <assert.h> | ^~~~~~~~~~ 1 error generated.
Do you have a C compiler installed? assert.h
is a basic C standard library header file.
Yes, I do. Initially, I thought the include directories may not have been specified but another library does pick up include files from the Xcode SDKs with the paths as is (stdbool.h, for example).
cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/ find . -name "assert.h" ./usr/include/assert.h ./System/Library/Frameworks/Kernel.framework/Versions/A/Headers/kern/assert.h ./System/Library/Frameworks/Kernel.framework/Versions/A/Headers/IOKit/assert.h
Never mind, it is related to the include paths and I'm able to get past the particular error by specifying -I ${OSX_SYSROOT}/usr/include"
.