2016년 6월 19일 일요일

SystemC on Windows (using Bash on Windows)

1. Normally, SystemC uses dynamically linked library. However, it does not work (yet) in Bash on Windows:
The error message goes: "error while loading shared libraries: libsystemc-2.3.1.so: cannot enable executable stack as shared object requires: Invalid argument".

Note that I've already set the environment variable, LD_LIBRARY_PATH, to the directory where SystemC library resides as below:

2. A workaround is to use static-linking:
Note the flags used in the linking command:
-Wl, -Bstatic -lsystemc -Wl, -Bdynamic -pthread