Jump to content

Search the Community

Showing results for tags 'collect2:error: ld returned 1 exit status'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Accellera Systems Initiative
    • Information
    • Announcements
    • In the News
  • SystemC
    • SystemC Language
    • SystemC AMS (Analog/Mixed-Signal)
    • SystemC TLM (Transaction-level Modeling)
    • SystemC Verification (UVM-SystemC, SCV)
    • SystemC CCI Public Review
  • UVM (Universal Verification Methodology)
    • Methodology and BCL Forum
    • UVM SystemVerilog Discussions
    • Simulator Specific Issues
    • 1800.2-2017 Early Adopter Release
    • UVM Commercial Announcements
    • UVM 1.2 Public Review
  • Portable Stimulus
    • Portable Stimulus Discussion
    • IP-XACT Discussion
  • IEEE 1735/IP Encryption
    • IEEE 1735/IP Encryption Discussion
  • OCP (Open Core Protocol)
  • UCIS (Unified Coverage Interoperability Standard)
  • Commercial Announcements
    • Announcements


  • SystemC
  • UVM
  • UCIS
  • IEEE 1735/IP Encryption


  • Community Calendar

Found 1 result

  1. Hi I am able to run Hello.cpp and other simple programs - but when try for the code below I added sc_signal< sc_int<4> > a,b,sum; to my .cpp , i am getting the following issue during linking time `sc_dt::sc_int_base::print(std::ostream&) const': /usr/local/systemc-2.3/include/sysc/datatypes/int/sc_int_base.h:865: undefined reference to `sc_dt::sc_int_base::to_string[abi:cxx11](sc_dt::sc_numrep, bool) const' collect2: error: ld returned 1 exit status Makefile.rules:150: recipe for target 'a.x' failed My code is pasted below #include "systemc.h" SC_MODULE(tff_async_reset){ sc_in <bool> data,clk,reset; sc_out <bool> q; bool q_l; void atff(){ if(~reset.read()){ q_l = 0; } else if(data.read()) { q_l = !q_l; } q.write(q_l); } SC_CTOR(tff_async_reset) { SC_METHOD (atff); sensitive << reset; sensitive << clk.pos(); } }; int sc_main(int argc , char* argv[]) { sc_signal< sc_int<4> > a,b,sum; sc_signal<bool> clk; return(0); } I use the below command for compiling/linking g++ -g -Wall -pedantic -Wno-long-long -Werror -L. -L.. -L /usr/local/systemc-2.3/lib-linux64/ -Wl,-rpath=/usr/local/systemc-2.3/lib-linux64 -o a.x tff_async_reset.o -lsystemc -lm If I remove the line sc_signal< sc_int<4> > a,b,sum; the above command passes Any help ? rgds bijoy