Hello everyone.
I've been dealing with this issue for over a month on my M1 MBP. I'm using CLion for C++. I cannot get any program I write to compile with g++/gcc. I have taken the following steps to remedy the issue: Update CLion, Reinstall CLion, Update and Reinstall CommandLineTools, Reinstall MacOS, reset the computer to default.
I've tried everything I can think of to get this to behave how it was originally. The issue started when I updated to MacOS Ventura. I deeply, deeply regret upgrading at this point but have no way of going back.
This is a very basic program I've written to demonstrate the issue.
int main() {
welcome();
}
void welcome(){
std::cout << "Hello world";
}
void welcome();
Very, very basic. The issue is that every single time I try to do g++ main.cpp, I get the following error.
"welcome()", referenced from:
_main in main-fbb48c.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)