excuse me, I forgot to put the error text. gcc test.c -o t
test.c: In function ‘main’: test.c:7:2: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default] /tmp/cc7vv2UZ.o: In function `main': test.c:(.text+0x29): undefined reference to `m5_dump_stats' collect2: ld returned 1 exit status On Fri, Jan 13, 2012 at 5:11 PM, Hamid Reza Khaleghzadeh < [email protected]> wrote: > Hi > > Assume I want to reset simulation statistics from through a C program. So, > I must add m5op.h header file to the application, and call resetstats(...) > function in the application. I have done it, but encountered with following > error when I compiled the program. Could you tell me how facilities of > m5op.h file can be used in a C program? > > Thanks. > -- Hamid Reza Khaleghzadeh
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
