aqib Posted November 28, 2019 Report Share Posted November 28, 2019 Hi I am trying to install systemC 2.2.0 but it was giving ‘int compare_unsigned", "mutable" and "gets" error. Through your forum I have removed "mutable" and fgets error. now problem is when I run @make" it pops up following error of "int compare_unsigned" . Is anyone have clue about this error. Thanks in advance for your time and help. /usr/local/systemc/include/sysc/datatypes/int/sc_unsigned.h:1849:14: error: friend declaration of ‘int compare_unsigned(sc_dt::small_type, int, int, const sc_digit*, sc_dt::small_type, int, int, const sc_digit*, sc_dt::small_type, sc_dt::small_type)’ specifies default arguments and isn’t a definition [-fpermissive] 1849 | friend int compare_unsigned(small_type us, | ^~~~~~~~~~~~~~~~ /usr/local/systemc/include/sysc/datatypes/int/sc_unsigned.h:1849:14: error: friend declaration of ‘int sc_dt::compare_unsigned(sc_dt::small_type, int, int, const sc_digit*, sc_dt::small_type, int, int, const sc_digit*, sc_dt::small_type, sc_dt::small_type)’ specifies default arguments and isn’t the only declaration [-fpermissive] /usr/local/systemc/include/sysc/datatypes/int/sc_unsigned.h:125:5: note: previous declaration of ‘int sc_dt::compare_unsigned(sc_dt::small_type, int, int, const sc_digit*, sc_dt::small_type, int, int, const sc_digit*, sc_dt::small_type, sc_dt::small_type)’ 125 | int compare_unsigned(small_type us, Quote Link to comment Share on other sites More sharing options...
Roman Popov Posted November 29, 2019 Report Share Posted November 29, 2019 SystemC 2.2 is quite old, may be incompatible with modern compilers. Why not to use SystemC 2.3.3 ? Quote Link to comment Share on other sites More sharing options...
aqib Posted December 2, 2019 Author Report Share Posted December 2, 2019 Thanks Roman for quick response. I am doing simulation on Noxim which requires syctemc2.2.0. Quote Link to comment Share on other sites More sharing options...
Roman Popov Posted December 3, 2019 Report Share Posted December 3, 2019 Well, compiler error is self-explanatory. I see this particular issue is fixed even in SystemC 2.3.0 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.