Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > gcc 3.3, solaris 8, compile error - 'strftime', 'localtime', etc. "not declared"

Reply
Thread Tools

gcc 3.3, solaris 8, compile error - 'strftime', 'localtime', etc. "not declared"

 
 
Bimal
Guest
Posts: n/a
 
      08-20-2003
Hi,

I upgraded my gcc from 2.95 to 3.3. When I compile some projects I get
error messages saying...

/usr/local/include/c++/3.3/ctime:68: error: `tm' not declared
/usr/local/include/c++/3.3/ctime:70: error: `clock' not declared
/usr/local/include/c++/3.3/ctime:71: error: `difftime' not declared
/usr/local/include/c++/3.3/ctime:72: error: `mktime' not declared
/usr/local/include/c++/3.3/ctime:73: error: `time' not declared
/usr/local/include/c++/3.3/ctime:74: error: `asctime' not declared
/usr/local/include/c++/3.3/ctime:75: error: `ctime' not declared
/usr/local/include/c++/3.3/ctime:76: error: `gmtime' not declared
/usr/local/include/c++/3.3/ctime:77: error: `localtime' not declared
/usr/local/include/c++/3.3/ctime:78: error: `strftime' not declared

Can anyone help?

Thanks.
 
Reply With Quote
 
 
 
 
Tim Prince
Guest
Posts: n/a
 
      08-20-2003
Bimal wrote:

> Hi,
>
> I upgraded my gcc from 2.95 to 3.3. When I compile some projects I get
> error messages saying...
>
> /usr/local/include/c++/3.3/ctime:68: error: `tm' not declared
> /usr/local/include/c++/3.3/ctime:70: error: `clock' not declared
> /usr/local/include/c++/3.3/ctime:71: error: `difftime' not declared
> /usr/local/include/c++/3.3/ctime:72: error: `mktime' not declared
> /usr/local/include/c++/3.3/ctime:73: error: `time' not declared
> /usr/local/include/c++/3.3/ctime:74: error: `asctime' not declared
> /usr/local/include/c++/3.3/ctime:75: error: `ctime' not declared
> /usr/local/include/c++/3.3/ctime:76: error: `gmtime' not declared
> /usr/local/include/c++/3.3/ctime:77: error: `localtime' not declared
> /usr/local/include/c++/3.3/ctime:78: error: `strftime' not declared
>
> Can anyone help?

It's hard to see how you could get these, unless you have mixed up C++ and
C in some fashion. If you had C code, #include <time.h> should take care
of these declarations.

--
Tim Prince
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to compile the following source code in VC6// I have error inVC++6 but compile ok in GCC fAnSKyer C++ 2 06-07-2009 07:57 AM
error: expected `;' before 'itr' template compile error? Solaris vsLinux Jeff C++ 3 03-11-2008 08:29 PM
Solaris 10 gcc 3.4.6 perl compile error HELP! mancat Perl Misc 4 08-31-2007 04:04 PM
Template construction in old gcc 3.3.3 does not compile in gcc 3.4.4 eknecronzontas@yahoo.com C++ 5 09-17-2005 12:27 AM
Link error using gcc 3.3 on Solaris 9 Brice Breeden C++ 0 08-01-2003 03:59 AM



Advertisments