Post

Replies

Boosts

Views

Activity

Comment on clang: error: linker command failed with exit code 1 (use -v to see invocation)
@eskimo Yes that did help to compile this time. I typically use g++ main.cpp to compile and have never use a clang command. Any idea why the linker is no longer working for g++? Another use mentioned having the same issue with Ventura so I suspect it's not uncommon. I've also found very similar posts for previous updates but never found a solution unfortunately. Any idea? Is this something that gets fixed with Xcode in time? For now, I'll use the clang command to finish my assignment.
Topic: App & System Services SubTopic: Core OS Tags:
Jan ’23
Comment on Cannot figure out a very basic issue...
I'm using CLion, so would the apple alias for g++ to clang still apply? The thing is, at the time this issue arose, Codecademy also started having issues with their terminal too. I cannot use g++ on there either. I did put a \n. In the compiler I typed g++ main.cpp and that's the error it gave.
Replies
Boosts
Views
Activity
Mar ’23
Comment on clang: error: linker command failed with exit code 1 (use -v to see invocation)
Hey eskimo, using that clang command does work. I'm curious why g++ is having such difficulty now then. It's a linker error, but I cannot seem to understand why it's happening now that I've updated to MacOS Ventura. I suppose I can switch to that method, but I'd really like if g++ would work as it did before as well.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Feb ’23
Comment on clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please let me know if you find a solution. I'll update here if a solution is found too. Unfortunate issue all around, but I have an assignment due I can't complete normally because of this. Eskimo did post a good workaround below with clang commands, if you need something urgently!
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jan ’23
Comment on clang: error: linker command failed with exit code 1 (use -v to see invocation)
@eskimo Yes that did help to compile this time. I typically use g++ main.cpp to compile and have never use a clang command. Any idea why the linker is no longer working for g++? Another use mentioned having the same issue with Ventura so I suspect it's not uncommon. I've also found very similar posts for previous updates but never found a solution unfortunately. Any idea? Is this something that gets fixed with Xcode in time? For now, I'll use the clang command to finish my assignment.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jan ’23