fatal error: systemc.h: No such file or directory

≯℡__Kan透↙ 提交于 2021-01-05 07:21:07

问题


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

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

and I gat this error message:

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

Note: I am new to Eclipse...


回答1:


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

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/



来源:https://stackoverflow.com/questions/43375189/fatal-error-systemc-h-no-such-file-or-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!