I tried to run all the systemC codes in
http://www.asic-world.com/systemc/tutorial.html
but when I got the codes under
Verification Using SystemC
I had a lot of problem:
g++ -I. -I/usr/local/scv-2.0.0/include -I/usr/local/systemc-2.3.1/include -L. -L/usr/local/systemc-2.3.1/lib-linux64 -Wl,-rpath=/usr/local/systemc-2.3.1/lib-linux64 -o scv_extensions scv_extensions.cpp -lsystemc -lm
/tmp/ccO3XuBg.o: In function `sc_main':
scv_extensions.cpp.text+0x47): undefined reference to `_scv_extension_type_int::get_bitwidth() const'
scv_extensions.cpp.text+0xb1): undefined reference to `_scv_out_p'
scv_extensions.cpp.text+0xc7): undefined reference to `_scv_extension_util::print(std:stream&, int, int) const'
while the last one sc_fifo.cpp
g++ -I. -I/usr/local/scv-2.0.0/include -I/usr/local/systemc-2.3.1/include -L. -L/usr/local/systemc-2.3.1/lib-linux64 -Wl,-rpath=/usr/local/systemc-2.3.1/lib-linux64 -o sc_fifo sc_fifo.cpp -lsystemc -lm
had no problem