Allen yang Posted April 25 Report Share Posted April 25 Hi, Everyone, I have download SC on github and compile install on el7 which runs well. I want to use formmer compile SC result and copy the sc.a and include to my new el8 OS. However, I get undefined error on new OS. ../include/systemc/sysc/datatypes/int/sc_uint_base.h:848: undefined referece to `sc_dt::sc_uint_base::to_string() const` Here's my quenction, can we reuse the compile result of other OS? Quote Link to comment Share on other sites More sharing options...
Eyck Posted April 25 Report Share Posted April 25 Usually this does not work. There are quite a few dependenies to OS and compiler libraries which prevent this. If you build systemc as a shared library there is some chance to get it work. Quote Link to comment Share on other sites More sharing options...
AmeyaVS Posted April 25 Report Share Posted April 25 Hello @Allen yang, As responded by @Eyck, it might work. But I would not recommend it. You might hit issues due to incompatibilities in OS, system libraries, compiler generated output, etc. You might get very hard to debug issues or random simulation crashes. It's better to recompile for the target platform if you can to have a chance of better compatibility. Regards, Ameya Vikram Singh Quote Link to comment Share on other sites More sharing options...
Allen yang Posted April 26 Author Report Share Posted April 26 Thanks a lot @AmeyaVS @Eyck. I will try to use SC in the same OS. Quote Link to comment Share on other sites More sharing options...
David Black Posted May 7 Report Share Posted May 7 Use a Docker container and install SystemC there. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.