本文介绍了致命错误:systemc.h:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Eclipse中构建一个项目,如下所示:

i am trying to build a project in Eclipse, which looks something like this:

#include <iostream>
#include <systemc.h>
int sc_main()
{
    ...
}

我收到以下错误消息:

make all
Building file: ../src/main.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/main.d" -MT"src/main.d" -o "src/main.o" "../src/main.cpp"
../src/main.cpp:11:21: fatal error: systemc.h: No such file or directory
compilation terminated.
make: *** [src/main.o] Error 1

注意:我是Eclipse的新手...

Note: I am new to Eclipse...

推荐答案

您忘记将SystemC库添加到您的包含路径中.

You forgot to add the SystemC library to your include path.

此处提供了有关如何使用Eclipse设置SystemC的详细信息: http://karibe.co/2014/02/setting-up-systemc-and-eclipse-for-c-hardware-simulation/

A detailed post on how to setup SystemC with Eclipse is available here: http://karibe.co/2014/02/setting-up-systemc-and-eclipse-for-c-hardware-simulation/

这篇关于致命错误:systemc.h:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 14:10
查看更多