Having trouble compiling stb_image on clang in C. Spits out 'expected expression' errors #1431
-
It's really odd. I dont have a clue why it is reporting an error like this And no, it's not because of the SIMD stuff. I tried with and without STBI_NO_SIMD. I still get the same 'expected expression' errors A pattern i'm noticing is that it seems to get stumped at the 'out' ptr The C std im using is -std=c2x. This is because i get a warning about 'omitting a parameter name', which again, doesn't look like it is lol I'm using the library like normal by defining the implementation macro followed by the include to stb_image.h Any help is appreciated, thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It sounds like As a general matter of policy, we'll happily take patches to fix issues with officially published standard revisions, but C2X is still in progress and current implementations are subject to change. For the time being, I'd suggest to compile the translation unit that defines |
Beta Was this translation helpful? Give feedback.
It sounds like
out
got added as a keyword or preprocessor#define
, but I have no idea what it maps to.As a general matter of policy, we'll happily take patches to fix issues with officially published standard revisions, but C2X is still in progress and current implementations are subject to change. For the time being, I'd suggest to compile the translation unit that defines
STB_IMAGE_IMPLEMENTATION
with C17 or below.