Menu

0.3.11 RC2 [r492] failed to build. My Solution.

2019-02-10
2019-02-15
  • Anderson Almeida

    Hi.
    On Arch Linux (g++/gcc 8.2.1), building from sources failed with an error on "e-led.cpp".
    I would like to share my solution.

    The file uses the "pow( )" function without include the math.h header.
    https://sourceforge.net/p/simulide/svnrepo/HEAD/tree/trunk/src/simulator/elements/e-led.cpp#l90

    I added "#include <math.h>" in the includes section and then it's builded successfully.</math.h>

     
  • Uwe Steinmann

    Uwe Steinmann - 2019-02-14

    Same here with gcc 8.2.0 on debian sid.

    There are also various spelling errors in the code. Just search for "Unkown" or "recieved"

     
  • Santiago

    Santiago - 2019-02-15

    Spelling errors?
    Please, can you provide more info aboout this issue?

     
  • Uwe Steinmann

    Uwe Steinmann - 2019-02-15
    simulide-0.3.10  grep -r -i recieved src/
    src/simulator/elements/e-i2c.cpp:            //printf("I²C Start conditcion recieved\n");
    src/simulator/elements/e-i2c.cpp:            //printf("I²C Stop conditcion recieved\n");
    src/gpsim/modules/ssp.cc:  // A clock has happened. Either we sent one or we recieved one.
    simulide-0.3.10  grep -r -i unkown src/
    src/simulator/elements/processors/avrprocessor.cpp:            QMessageBox::warning( 0, tr("Unkown Error:")
    src/simulator/elements/processors/picprocessor.cpp:            QMessageBox::warning( 0, tr("Unkown Error:")
    src/simulator/elements/processors/picprocessor.cpp:        QMessageBox::warning( 0, tr("Unkown Error:")
    
     
  • Santiago

    Santiago - 2019-02-15

    Ok, now i understand.

    Thank you very much.