I’ve been asked several days ago how setup Eclipse in order to use the RPM produced by my SystemC SRPM. Hence the reason of writing this blog post. Unlike the SystemC’s upstream default compilation, my SRPM doesn’t produce a static library (libsystemc.a), but a dynamic library libsystemc.so.
Preparing Eclipse to design with SystemC is very simple.
Note: 64 bit users should use /usr/lib64 instead of /usr/lib.
- Create a C++ project with Project type “Hello World C++ Project”
- From the menu, Project -> Properties
- Select C/C++ Build -> Settings
- On “Tool Settings” tab:
- GCC C++ Compiler -> Directories
- Add the directory “/usr/lib/systemc/2.2.0/include” which contains system.h
- GCC C++ Compiler -> Directories
-
- GCC C++ Linker -> Libraries
- In “libraries”, add “systemc”
- In “Library Search Path”, add “/usr/lib/systemc/2.2.0/lib-linux/” which contains libsystemc.so
- GCC C++ Linker -> Libraries


