简体   繁体   English

架构 arm64 的未定义符号:m1 mac

[英]Undefined symbols for architecture arm64: m1 mac

 "__ZNSi6ignoreEv", referenced from:
          __Z2q2v in cc5SDSPY.o
      "__ZNSi7getlineEPcl", referenced from:
          __Z2q2v in cc5SDSPY.o
      "__ZNSirsERd", referenced from:
          __Z2q3v in cc5SDSPY.o
      "__ZNSirsERi", referenced from:
          __Z2q2v in cc5SDSPY.o
          __Z2q3v in cc5SDSPY.o
      "__ZNSolsEPFRSoS_E", referenced from:
          __Z2q1v in cc5SDSPY.o
          __Z2q3v in cc5SDSPY.o
      "__ZNSolsEd", referenced from:
          __Z2q3v in cc5SDSPY.o
      "__ZNSolsEi", referenced from:
          __Z2q1v in cc5SDSPY.o
          __Z2q2v in cc5SDSPY.o
      "__ZNSt8ios_base4InitC1Ev", referenced from:
          __Z41__static_initialization_and_destruction_0ii in cc5SDSPY.o
      "__ZNSt8ios_base4InitD1Ev", referenced from:
          __Z41__static_initialization_and_destruction_0ii in cc5SDSPY.o
      "__ZNSt9basic_iosIcSt11char_traitsIcEE8setstateESt12_Ios_Iostate", referenced from:
          __ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_ in cc5SDSPY.o
      "__ZSt17__istream_extractRSiPcl", referenced from:
          __ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_PS3_ in cc5SDSPY.o
      "__ZSt3cin", referenced from:
          __Z2q1v in cc5SDSPY.o
          __Z2q2v in cc5SDSPY.o
          __Z2q3v in cc5SDSPY.o
      "__ZSt4cout", referenced from:
          __Z2q1v in cc5SDSPY.o
          __Z2q2v in cc5SDSPY.o
          __Z2q3v in cc5SDSPY.o
      "__ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_", referenced from:
          __Z2q1v in cc5SDSPY.o
          __Z2q3v in cc5SDSPY.o
      "__ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc", referenced from:
          __Z2q1v in cc5SDSPY.o
          __Z2q2v in cc5SDSPY.o
          __Z2q3v in cc5SDSPY.o
      "__ZdaPv", referenced from:
          __Z2q2v in cc5SDSPY.o
          __Z2q3v in cc5SDSPY.o
      "__ZdlPvm", referenced from:
          __Z2q1v in cc5SDSPY.o
      "__Znam", referenced from:
          __Z2q1v in cc5SDSPY.o
          __Z2q2v in cc5SDSPY.o
          __Z2q3v in cc5SDSPY.o
      "___cxa_throw_bad_array_new_length", referenced from:
          __Z2q3v in cc5SDSPY.o
    ld: symbol(s) not found for architecture arm64
    collect2: error: ld returned 1 exit status

Getting this error.得到这个错误。 I tried to install 'oh my zsh' and in the process, lost even the basic compiling setup.我尝试安装“oh my zsh”,在此过程中,甚至连基本的编译设置都丢失了。

Whoever is facing this error, this happens because of the Big Sur to Monterey update of the Mac os.无论谁面临这个错误,这是因为 Mac os 的 Big Sur 到 Monterey 更新。 Just set the code path again.只需再次设置代码路径。 Edit the JSON files and your vs code will again start working like a charm!编辑 JSON 文件,你的 vs 代码将再次开始工作!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 “架构 arm64 的未定义符号”使用 g++-12 在 M1 mac 上构建基本 SFML 项目 - "Undefined symbols for architecture arm64" building basic SFML project on M1 mac with g++-12 在 M1 Mac 上从 C++ 链接到 curl - arm64 的未定义符号 - Linking to curl from C++ on M1 Mac - undefined symbols for arm64 cmake 在 Mac 上使用 ARM M1 正在运行 linker 使用 x86_64 架构而不是 arm64 - cmake on Mac with ARM M1 is running linker with x86_64 architecture instead of arm64 MacOS 中架构 arm64 的未定义符号 - Undefined symbols for architecture arm64 in MacOS GLFW“架构 arm64 的未定义符号” - GLFW "Undefined symbols for architecture arm64" 如何解决 M1 Mac 中的“未找到架构 arm64 的符号” - How to solve the "symbol(s) not found for architecture arm64" in M1 Mac 在 Mac arm64 架构 (M1) 上使用 ffmpeg 的 mpd 编译错误不清楚 - Unclear compile error for mpd with ffmpeg on Mac arm64 architecture (M1) Mac OS - VS Code Insiders - Code Runner:架构 arm64 的未定义符号 - Mac OS - VS Code Insiders - Code Runner: Undefined symbols for architecture arm64 仅当构建框架时,体系结构arm64的未定义符号 - Undefined symbols for architecture arm64 only when building framework glfw-3.3.5 - 架构 arm64 的未定义符号 - glfw-3.3.5 - Undefined symbols for architecture arm64
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM