In VS Code, I'm currently facing errors that resemble the first image.
In situations like I recommend that you create a small test program and compile it in Terminal. For example:
% cat hello.c
#include <stdio.h>
int main(int argc, char ** argv) {
fprintf(stderr, "Hello Cruel World!\n");
return 0;
}
% clang hello.c
% ./a.out
Hello Cruel World!
Does that work?
If so, you know that your command-line compiler and linker are working properly, and so the issue you’re seeing is related to how your third-party development environment is invoking them. If that’s the case, my advice is that you escalate that via the support channel for that tool.
Secondly, the terminal now only displays the error seen in the second
message.
Are you referring to the Terminal app is macOS? Or a terminal window within some other app?
I suspect it’s the latter, in which case it seems to be weirdly configured. /bin/bash
is a file, the Bash executable itself, and so /bin/bash/users
doesn’t make sense.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"