icnhoukdsiih / testlib

Automatically exported from code.google.com/p/testlib
0 stars 0 forks source link

Compilation error in rand() #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Version 0.8.5 (https://code.google.com/p/testlib/downloads/list)

Steps:
1. Create a project in MS VS 2008, add testlib.h as a header 
2. Add source file containing
#include "testlib.h"
int main(int argc, char * argv[])
{
  quitf(_ok, "yes");
}
3. Compile and get error: rand() must return a value 

To fix: add "return 0;" in rand() implementation

Please provide any additional information below.

Original issue reported on code.google.com by roman.a...@gmail.com on 30 Sep 2013 at 11:50