1

I want to install system c library in Eclipse Luna in Mac OS.

I tried many solutions including: Project-> Properties->C++ General ->Paths and Symbols.

I still can't use the include systemc.h.

Please suggest another way of compiling system c code in Mac OS.

Kory Gill
  • 6,993
  • 1
  • 25
  • 33
user12083
  • 35
  • 1
  • 9

1 Answers1

0

to use the maked systemc lib (assuming you followed the default INSTALL notes on version 2.3):

  • open your systemc eclipse project
  • open project properties
  • c/c++ build tab tool settings set gcc c++ compiler includes the include path -l to your systemc include folder sitting in the downloaded folder
  • go to gcc c++ linker and -l add systemc and -L add /full/path/to_so_lib/

if this is not enough aka “error while loading shared libraries: libsystemc-2.3.1.so: cannot open shared object file: No such file or directory”
add to your sudo nano /etc/ld.so.conf the -L linker path above. then sudo ldconfig

droid192
  • 2,011
  • 26
  • 43