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

B

Bimal

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.
 
T

Tim Prince

Bimal said:
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.
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top