Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2004

Tip: Looking for answers? Try searching our database.

time.h

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JLW - 11 Jun 2004 14:22 GMT
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
William DePalo [MVP VC++] - 11 Jun 2004 14:42 GMT
> Why cannot I not access time.h?  Here's the code:
>
[quoted text clipped - 4 lines]
>
> error C2065: 'time' : undeclared identifier

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

Regards,
Will
JLW - 11 Jun 2004 14:46 GMT
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
> > Why cannot I not access time.h?  Here's the code:
> >
[quoted text clipped - 9 lines]
> Regards,
> Will
William DePalo [MVP VC++] - 11 Jun 2004 16:19 GMT
> 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
JLW - 11 Jun 2004 18:22 GMT
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
> > 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.
[quoted text clipped - 17 lines]
> Regards,
> Will
JLW - 14 Jun 2004 14:23 GMT
I've got this problem licked, but now have a new one, and I'll start a new
thread....

Thanks,
JLW

> 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
[quoted text clipped - 27 lines]
> > Regards,
> > Will

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.