c++编译错误.g++ gnu
C++ compile error. G++ gnu
你好,我的c++程序有一些问题。我正在使用g++ gnu,它是在windows 10上。下面是显示的错误:
ld.exe:无法找到-lpthreadCollect2.exe: error: ld returned 1 exit status
请帮忙,因为我不知道是怎么回事。
谢谢,亚设
这是链接器错误。不是编译器错误。它抱怨在库搜索路径中找不到pthread库。要么它根本不存在,要么你需要用-L
选项指出它在哪里。或者,在不需要pthread的情况下,删除-lpthread
选项,这样您就不会试图链接到它。
相关文章:
- 使用 Powershell 命令将 cpp 文件的文件夹编译为 GNU 的 g++
- 如何使用 gnu gcc 标志 -mpc32、-mpc64 和 -mpc80?
- 防止 GNU Make 在每次构建时生成 protobuf 代码
- 为什么 C++ 编译器在"c:program filesgnu emacsinclude"中查找包含文件?
- 有没有适用于Windows.lib文件的GNU二进制文件描述符(BFD)
- 监视GNU Radio中的缓冲区
- GNU C++: unique_ptr.h 没有这样的文件或目录
- MinGW在Cygwin上.关于链接GNU科学图书馆的一些问题
- 与libc相比,Gnu科学图书馆的性能较差
- GNU 在看到其他同名文件时重用源文件
- 从 C++ 调用 GNU 绘图,无需用户输入
- 如何为GSL(GNU科学库)调整C++式随机数引擎?
- 没有规则来设定目标'/usr/lib/x86_64-linux-gnu/libboost_filesystem.so'
- 使用 PYbombs 安装软件包 GNU 无线电时出错
- 在编译时使用 gnu++11 过滤值列表,不使用 stdlib(Arduino 环境)
- Java System.loadLibrary 不会在 /usr/lib/x86_64-linux-gnu/ 文件夹中查
- 在Windows中构建GSL(GNU科学库)以与VS2015一起使用
- _mm512_exp_pd与 GNU 编译器一起使用
- GNU Radio中基于条件的输出的块类型
- 如何重建 GNU Arm 嵌入式工具链的 newlib 和 newlib-nano