在Eclipse Luna中使用System C.

时间:2016-03-25 22:42:57

标签: eclipse systemc

我想在Mac OS中的Eclipse Luna中安装系统c库。

我尝试了很多解决方案,包括: 项目 - >属性 - > C ++通用 - >路径和符号。

我仍然无法使用include systemc.h。

请提供另一种在Mac OS中编译系统c代码的方法。

1 个答案:

答案 0 :(得分:0)

使用make d systemc lib(假设你遵循版本2.3的默认INSTALL注释):

  • 打开你的systemc eclipse项目
  • 打开项目属性
  • c / c ++构建选项卡工具设置集gcc c ++编译器包含包含路径-l到你的systemc include文件夹,位于下载的文件夹中
  • 转到gcc c ++链接器并且-l add systemc和-L add /full/path/to_so_lib/

如果这还不够又称“error while loading shared libraries: libsystemc-2.3.1.so: cannot open shared object file: No such file or directory”
添加到上面的sudo nano /etc/ld.so.conf -L链接器路径。然后sudo ldconfig