dyld section not supported after Mojave upgrade

独自空忆成欢 提交于 2019-11-30 17:08:37

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!