问题
I have updated macos to Mojave and after updating the command tools and when I run my c++ program I am getting the following error
dyld: __dyld section not supported in /Users/rameshkolluru/Dropbox/1D_Multiphase_Euler_Equations_FVM/./1D_Multiphase_Euler_solver Abort trap: 6
Any help is appreciated
回答1:
Are you compiling with the -pg
option to enable profiling? If yes, try to remove that flag.
Using -pg
Apple LLVM version 10.0.0 (clang-1000.11.45.2) still seems to add a __DATA,__dyld
section to your executable, which dyld in Mojave does not seem to support/accept any more.
来源:https://stackoverflow.com/questions/52519907/dyld-section-not-supported-after-mojave-upgrade