time.h

  • Thread starter Thread starter JLW
  • Start date Start date
J

JLW

Why cannot I not access time.h? Here's the code:

#include <time.h>
long int seed = time(0); // Random Seed

I get the error:

error C2065: 'time' : undeclared identifier

Thanks,
JLW
 
JLW said:
Why cannot I not access time.h? Here's the code:

#include <time.h>
long int seed = time(0); // Random Seed

I get the error:

error C2065: 'time' : undeclared identifier

Is that it in its entirety? Is there are namespace line nearby?

Regards,
Will
 
Pretty much, but, in investigation, time.h does not exist on either of my
devel systems. I'm using VC++ 7, and it's unmanaged.
I talked to one of our other programmers, and he's had the dame problem for
2 years, no time.h, and nothing but problems.

Thanks,
JLW
 
JLW said:
Pretty much, but, in investigation, time.h does not exist on either of my
devel systems. I'm using VC++ 7, and it's unmanaged.
I talked to one of our other programmers, and he's had the dame problem for
2 years, no time.h, and nothing but problems.

Hmm. Does your staff use machines derived from a common base-level system?

On this VS.Net 2003 system, "dir time.h" reports this:

05/31/2002 02:28 AM 5,628 time.h

My guess is that it is a bad setup. Do you have a directory named something
like

"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include"

Does it not include about 150 headers?

Regards,
Will
 
Now this is strange, it didn't show up under a windows search, but in going
to the directory by hand, things are starting to fall into place. WTF is
going on with that?

Okay, so that problem solved, now it's time to move onto other challenges.

Thanks again,
JLW
 
I've got this problem licked, but now have a new one, and I'll start a new
thread....

Thanks,
JLW
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top