473,326 Members | 2,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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

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.
Nov 13 '05 #1
1 3535
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
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: DC Gringo | last post by:
I'm getting a "BC30451: Name 'CRListType' is not declared." error Here's the top of the page where I'm getting stuck... <%@ Control Language="vb" AutoEventWireup="false"...
10
by: ST | last post by:
Hi, I'm new to vb.net programming, and I keep getting this error: Name 'GetQuery' is not declared. I can't figure out why?? It seems like I have the right references/namespaces. This is my code...
1
by: Derek | last post by:
I am writing a web application for job seekers, and am adding a section that allows administrators to upload jobs to the system via xml. I have used an xml schema to validate the xml they upload....
2
by: TJS | last post by:
it says the name is not declared, but it is how can I fix this ? Compiler Error Message: BC30451: Name 'arrReportsList' is not declared. ========================== if...
2
by: fabrice | last post by:
Hello I'm getting an error during a .vb file compilation. My command is : vbc /t:library /r:system.web.dll /r:system.dll /r:mscorlib.dll myFile.vb The error is :
5
by: Kevin R | last post by:
I'm trying to update a sql database. It's modified Oledb code from an example that did work with an access database. How can I tweak my code to make it work? Thanks in advance. Kevin...
3
by: JohnJohn | last post by:
Hello. I have an aspx page called MyAspx.aspx (for the sake of this discussion) and its associated code file, MyAspx.aspx.vb. In the .vb file, I have declared a variable as follows: Public...
2
by: Monty | last post by:
Hello, I have a label control in my master page like this: <asp:Label ID=lblStatusMessage runat="server"></asp:Label> When I reference the control in my code-behind I get this error "Name...
3
by: mohammadazim | last post by:
Hi guys I wrote a socket program in c++ and used blocking system call read () for receiving data on socket. But it gives following error while compilation g++ -Wall -g -I`pwd`/../include...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.