我是新的systemc在Ubuntu 14.04和我想建立一个systemc小项目的Eclipse。我按照提供的自述文件和以下教程here。systemc eclipse sc_signal_resolved无法解析
下面问题是sc_signal_resolved未被识别。我有一个语法错误告诉我,sc_signal_resolved无法解析。
是我的代码示例:
就是为什么它不承认#include <systemc.h>
int sc_main(int argc, char ** argv) {
sc_signal_resolved zero, one;
// in the rest of the code I will use the zero and one passing them to some gates.
return(0);
}
我的问题?当例如sc_in被识别时。我已验证并且该文件是sysc /通信文件夹。 我该如何解决它?
这对我来说很适合使用“g ++ main.cpp -lsystemc”(这不是eclipse,我知道但代码很好)。你能发布确切的编译器错误信息吗? – systemcpro
确切的编译器错误是:说明\t资源\t路径\t位置\t类型 类型“sc_signal_resolved”无法解析\t myprogram.cpp \t /位置/语义错误 – user4237435
在我看来,如果它不能找到SystemC的标题(据我所知有限的信息)。在eclipse中,转到首选项“Preprocessor Include Paths”,并确保设置了systemc头文件的路径 - 例如“blah..blah/systemc/systemc-2.3.1/include”。 – systemcpro