我正在Linux上用C++开发一个程序。gcc的版本是4.5.1 20100924。我想在我的程序中使用std::atomic_int。我已经包含了原子头,如下所示:
include <atomic>
当我编译这个程序时,我得到了以下错误:
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.5.1/../../../../include/c++/4.5.1/bits/atomic_base.h:87:0,
from /usr/lib/gcc/x86_64-redhat-linux/4.
我已经在Ubuntu-14.0.0中安装了枕头,没有任何虚拟any。但是,当我试图再次在虚拟环境中安装它时,它会失败,并出现以下错误。
Reading https://pypi.python.org/simple/Pillow/
Best match: Pillow 3.0.0
Downloading https://pypi.python.org/packages/source/P/Pillow/Pillow-
i686-linux-gnu-gcc: error: build/temp.linux-i686-2.7/_imaging.o: No such f
当我在CLion和yocto SDK一起使用时,我有一个坏了的C编译器,但是它在eclipse Oxygen上工作得很好。这是编译器中的错误:
CMake Error at /home/developer/yocto_SDK2/toolchain2/sysroots/x86_64-pokysdk-linux/usr/share/cmake-3.7/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler
"/home/developer/yocto_SDK2/toolchain2/sysr
我从英特尔网站下载了MPSS软件栈版本3.5.2源代码。我正在尝试从源代码编译xeon端口GCC (移植自GCC 4.7.0),并将其安装在本地子目录中。但是,我得到了以下错误-
k1om-mpss-linux-gcc -dumpspecs > tmp-specs
/bin/sh: k1om-mpss-linux-gcc: command not found
我的配置如下-
# The below directory contains the cross compiled libs
# like assembler and linker
export PATH=$HOME/xeon-ph
我试图在我的实验室运行RHEL6.6 6.6-服务器版本的计算机上更新GCC。在运行“make”命令后,我一直收到错误。下面是一些代码:
/usr/bin/ld: /usr/local/GCC-5.1.0/gcc-build/./gmp/.libs /libgmp.a(mp_set_fns.o): relocation R_X86_64_32 against `__gmp_default_allocate' can not be used when making a shared object; recompile with -fPIC
/usr/local/
我正在尝试在linux平台(ARM 8148)上交叉编译opencv。
我收到以下错误:
warning: libQtTest.so.4, needed by ../../lib/libopencv_highgui.so.3.0.0, not found (try using -rpath or -rpath-link)
/opt/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libQtC
我希望能够在C中使用sqlite3功能,我最近从sqlite3网站下载了sqlite3合并,并编译了它以获得sqlite3.so,因此将其包含在我的项目中。我已经包含了我认为是编译代码所必需的库,但是我总是遇到同样的错误。链接器似乎在寻找错误的文件夹中的-lsqlite3和我找不到这个指定的路径在任何地方的任何项目属性,它似乎也不是一个有效的位置在我的电脑!下面是我试图编译代码时的输出。如果我愚蠢地错过了任何需要帮助的东西,请告诉我,在使用eclipse时,我是个初学者。
16:21:03 **** Build of configuration Debug for project SQLite
计划:
#include <thread>
int main(void)
{
std::thread t;
return 0;
}
test.cpp: In function ‘int main()’:
test.cpp:6:5: error: ‘thread’ is not a member of ‘std’
std::thread t;
^~~
GCC信息:
$ g++ test.cpp -H
. /home/nathan/development/toolchain/gnu/x86_64-unknown-linux-gnu/include/c
我在c代码中使用include:< openssl/md5.h >。当我用"gcc“编译器编译时,我没有任何错误,但当我用交叉编译器"arm-linux-gnueabi-gcc”编译它时,我有以下错误:
/usr/include/openssl/e_os2.h:56:33: fatal error: openssl/opensslconf.h: No such file or directory
compilation terminated.
我认为这个错误是因为我在交叉编译文件夹"/usr/arm-linux-gnueabi-gcc“中没有openssl