srand() and rand()

This is a discussion on srand() and rand() within the C++ Programming forums, part of the General Programming Boards category; So I am trying to get the psuedo random number generator to work. Everywhere I look online tells me this:
...

srand() and rand()

So I am trying to get the psuedo random number generator to work. Everywhere I look online tells me this:

1) Include the ctime and cstdlib headers.
Done.

2) Use something like the system time to seed the generator exactly like this.

Code:

srand(time(0));

Error.

3) Call rand() to generate random number.

Unfortunately I only get to step two. I recieve an error during compilation that says that function, srand(), written exactly as seen above, does not evaluate to a function taking one argument. What could be causing this?