tag:blogger.com,1999:blog-9060784960197732520.post5046065246023401030..comments2023-11-24T10:53:29.075+08:00Comments on Mac Zulu: Hello World in SystemCMacZuluhttp://www.blogger.com/profile/09271634421891810310noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-9060784960197732520.post-68965862209986855812014-08-13T01:56:43.783+08:002014-08-13T01:56:43.783+08:00Below is an improved version of this program becau...Below is an improved version of this program because the original has problems and is not strictly correct.<br /><br />// All systemc modules should include systemc.h header file<br />#include <br />using namespace sc_core;<br /> // Hello_world is module name<br /> SC_MODULE (hello_world) {<br /> SC_CTOR (hello_world) {<br /> SC_THREAD(say_hello); <br /> }<br /> void say_hello(void) {<br /> //Print "Hello World" to the console.<br /> SC_REPORT_INFO("Example","Hello World.\n");<br /> sc_stop();<br /> }<br /> };<br /> <br /> // sc_main in top level function like in C++ main<br /> int sc_main(int argc, char* argv[]) {<br /> hello_world hello("HELLO");<br /> // Print the hello world<br /> sc_start();<br /> return(0);<br /> }DCBhttps://www.blogger.com/profile/16003095007332052964noreply@blogger.comtag:blogger.com,1999:blog-9060784960197732520.post-28315757305090326512012-09-03T23:58:29.158+08:002012-09-03T23:58:29.158+08:00I think that the best is use export LD_LIBRARY_PAT...I think that the best is use export LD_LIBRARY_PATH="completed route to lib-linux":<br /><br /> export LD_LIBRARY_PATH="begining of route..."/systemc-2.3.0/lib-linux<br /><br />if you want know the libraries that use your program, you can use:<br /><br /> ldd "program_name"<br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9060784960197732520.post-10424507082521947172012-08-15T22:15:11.969+08:002012-08-15T22:15:11.969+08:00export LD_LIBRARY_PATH=\$HOME/SystemC/include:$LD_...export LD_LIBRARY_PATH=\$HOME/SystemC/include:$LD_LIBRARY_PATH<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9060784960197732520.post-82530049763297263362012-07-21T22:50:33.724+08:002012-07-21T22:50:33.724+08:00I have the same problem like you. I guess this wou...I have the same problem like you. I guess this would be helpful for you. http://www.accellera.org/Discussion_Forums/helpforum/archive/msg?list_name=help_forum&monthdir=201202&msg=msg00003.html<br /><br />Thanks,Unknownhttps://www.blogger.com/profile/04314216734039545114noreply@blogger.comtag:blogger.com,1999:blog-9060784960197732520.post-13609561723921768782012-07-11T22:20:54.292+08:002012-07-11T22:20:54.292+08:00Looks like you solved your problem. Great.Looks like you solved your problem. Great.MacZuluhttps://www.blogger.com/profile/09271634421891810310noreply@blogger.comtag:blogger.com,1999:blog-9060784960197732520.post-24436980904322085232012-05-17T04:20:29.763+08:002012-05-17T04:20:29.763+08:00-static flag at compiling did solve the problem.-static flag at compiling did solve the problem.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9060784960197732520.post-11322836449013199742012-05-17T02:22:21.980+08:002012-05-17T02:22:21.980+08:00Aloha,
as I am trying to get SysC working on my s...Aloha,<br /><br />as I am trying to get SysC working on my system, I have tried almost every HelloWorldTutorial there is, also this one.<br />But I am getting an error when compiling (from shell, as well as from eclipse). Anyone having an idea?<br /><br />error while loading shared libraries: libsystemc-2.3.0.so: cannot open shared object file: No such file or directory<br />make: *** [all] Error 127Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9060784960197732520.post-9820695702305709902012-04-20T09:53:23.900+08:002012-04-20T09:53:23.900+08:00U're a savior man ^^ thanks.U're a savior man ^^ thanks.Leo Bonillanoreply@blogger.com