首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >提供编译错误的CodeSourcery :缺少位/c++config.h

提供编译错误的CodeSourcery :缺少位/c++config.h
EN

Stack Overflow用户
提问于 2010-07-20 14:01:57
回答 2查看 2.6K关注 0票数 1

在我的项目中,我使用了线性代数的特征C++库。当我打开ARM霓虹灯的矢量化标志(-mfpu=neon -mfloat=softfp)时,我会得到一个编译器错误--没有这样的文件或目录。

我无法理解出了什么问题,这个位/c++config.h是什么?我该怎么做才能解决这个问题?

维克拉姆

main.c

代码语言:javascript
复制
#include<iostream>
#include <Eigen/Core>

// import most common Eigen types
using namespace Eigen;

int main(int, char *[])
{
    Matrix4f m3;
    m3 << 1, 2, 3, 0, 4, 5, 6, 0, 7, 8, 9, 0, 0, 0, 0, 0;
    Matrix4f m4;

    asm("#begins here");
    m4 = m3*m3;
    asm("#ends here");

    std::cout << "m3\n" << m3 << "\nm4:\n" << m4 << std::endl;

    std::cout << "DONE!!";
}

makefile

代码语言:javascript
复制
CPP=    /home/ubuntu/CodeSourcery/Sourcery_G++/bin/arm-none-linux-gnueabi-c++

all: main 

main: main.cpp
    $(CPP) -mfpu=neon -mfloat-abi=softfp -I /home/ubuntu/Documents/eigen/ main.cpp -o main

clean:
    rm -rf *o main

错误

代码语言:javascript
复制
**** Build of configuration Debug for project Test_Eigen ****

make all
/home/ubuntu/CodeSourcery/Sourcery_G++/bin/arm-none-linux-gnueabi-c++ -mfpu=neon -mfloat-abi=softfp -I /home/ubuntu/Documents/eigen/ main.cpp -o main
In file included from main.cpp:1:
/home/ubuntu/CodeSourcery/Sourcery_G++/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/include/c++/4.4.1/iostream:39: fatal error: bits/c++config.h: No such file or directory
compilation terminated.
make: *** [main] Error 1
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2010-07-22 07:39:12

我收到了Codesourcery团队的回复。造成这个问题是因为我没有安装所有的附加组件.安装加载项是一个非常简单的步骤,如果您正在CodeSourcery的Eclipse环境中运行,那么您只需转到Help > Install,然后它将非常直接地向前(更多信息请参阅入门指南的第3章)。

一旦安装了加载项,我就停止获得致命错误:bit/c++config.h:没有这样的文件或目录编译终止。(阅读更多关于编译器选项的信息,参见第三章)

票数 0
EN

Stack Overflow用户

发布于 2012-04-22 13:41:20

我也犯了同样的错误:

代码语言:javascript
复制
/usr/lib/gcc/x86_64-redhat-linux/4.6.3/../../../../include/c++/4.6.3/iostream:39: error: bits/c++config.h: No such file or directory

在fedora 15中安装libstdc++-devel.x86_64 0:4.6.3-2.fc15后,解决了该问题。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3290729

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档