‘rand’ and 'srandr'

Help
2009-05-21
2013-04-25
  • Ivan Shegev
    Ivan Shegev
    2009-05-21

    $ make

    src/aimlparser.cpp:244: error: ‘srand’ was not declared in this scope
    src/aimlparser.cpp: In member function ‘QString AIMLParser::resolveNode(QDomNode*, const QStringList&, const QStringList&, const QStringList&)’:
    src/aimlparser.cpp:451: error: ‘rand’ was not declared in this scope
    make: *** [tmp/aimlparser.o] Error 1

    Debian testing / gcc 4.3.3 / qt4