Macbook M1, c++ with linked gsl library, suddenly not working

Hello there, I have a macbook M1 with big sur, I have been using it to compile and run c++ programs for a while with g++ without any problem. Suddenly now when I run an executable I get the error message


dyld: Library not loaded: /usr/lib/libc++.1.dylib

Referenced from: /Users/ga/WorkDirs/./sper300GH

 Reason: image not found

zsh: abort   ./sper300GH


the funny thing is that randomly the executable sometimes runs

I find this very odd, also since this same executable was working fine before

this problem arises when I am linking the gsl library, but as I said used to work fine before

but now gives me an error/abort message (and sometimes it runs)


I decided to run the pending update to bigsur 11.4 hoping it would fix the issue but it didn't

any advice?

Posted on May 26, 2021 1:34 AM

Reply

Similar questions

1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Macbook M1, c++ with linked gsl library, suddenly not working

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.