zoukankan      html  css  js  c++  java
  • mac gcc 编译错误 基础问题

    mac gcc  Undefined symbols for architecture x86_64 "std::__1:

    //

    Undefined symbols for architecture x86_64:

      "std::__1::locale::use_facet(std::__1::locale::id&) const", referenced from:

          std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in Person-c78205.o

      "std::__1::ios_base::getloc() const", referenced from:

          std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in Person-c78205.o

      "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__init(unsigned long, char)", referenced from:

          std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> > std::__1::__pad_and_output<char, std::__1::char_traits<char> >(std:

    ...

    ---------

    //

    gcc 开启使用标准c++库即可

    比如:

    gcc -lstdc++ Person.cpp -o Person

  • 相关阅读:
    关于线程池的线程复用
    Java线程锁之意难平的读写锁
    Java8之StringJoiner
    springboot整合thymeleaf
    一维数组转二叉树、注解回滚、eclipse配置代码自动补全
    Java之线程锁
    关于工作中的一些总结
    关于shiro的猜测
    Java之扫描不到mapper
    网页中引用css样式
  • 原文地址:https://www.cnblogs.com/simoncook/p/5267732.html
Copyright © 2011-2022 走看看