Thursday, September 1, 2011

cstdlib.h MISSING IN INCLUDE FOLDER TRY THIS C/C++

 Getting this error  ??



If want to use rand() or srand() function in your program and are unable to include <cstdlib.h> header file because the file is not in your include folder , than try to include <stdlib.h> in your program and it should work.

Thanks

1 comment:

  1. Which compiler is this? To be precise, C++ does not have a "cstdlib.h", it only has "cstdlib" (without .h).
    stdlib.h is C not C++.

    Example code: http://codepad.org/lohUtLIJ

    ReplyDelete