Dev-C++ version 5.5.2 gives compilation error that occurs in the last line in main():
[Error] 'srand48' was not declared in this scope
#include<sys/time.h>#include<cmath>#include<cstdlib>#include<stdlib.h>externdoubledrand48();externlonglrand48(/*long*/);externintrand();externvoidsrand(longseedval);//main programmain(){//set random number generatorstructtimevaltp;structtimezonetzp;gettimeofday(&tp,&tzp);srand48(tp.tv_usec);//compilation error occurs here: [Error] 'srand48' was not declared in this scope}
Last edit: JITENDER AHUJA 2019-03-24
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dev-C++ version 5.5.2 gives compilation error that occurs in the last line in main():
[Error] 'srand48' was not declared in this scope
Last edit: JITENDER AHUJA 2019-03-24