f



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.
0
bimalg (2)
8/20/2003 11:24:02 AM
comp.lang.c 30430 articles. 2 followers. spinoza1111 (3246) is leader. Post Follow

1 Replies
337 Views

Similar Articles

[PageSpeed] 35

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
0
8/20/2003 12:33:11 PM
Reply:

Similar Artilces:

Xcode2.2 and gcc-3.3 "multiple compilations" error
Hi, I had issues getting wxWidgets to compile with Xcode when using gcc 3.3, which turned out to be because the project build settings were set up rather strangely. To fix this problem, move all the header search paths defined using - iquote in OTHER_CFLAGS, and put them in USER_HEADER_SEARCH_PATHS, where they should be! -iquote is only supported by gcc 4.0 and greater... For gcc 3.3 Xcode will revert back to using the old -I- notation. Hope this is helpful. Nick --------------------------------------------------------------------- To unsubscribe, e-mail: wx-us...

PLEASE HELP !! Why does extern "C" not work for gcc 3.2.3
Could some C++ guru help me please? I am trying to build an application using gcc 3.2.3, that has a some classes using functions defined in some C files in the same directory. If inside the C++ source file I use: extern "C"{ // C function declarations } //C++ code Then I get all linker problems that such and such C function cannot be resolved. Is there a compiler flag(in addition to the directive above) that I need to activate? Any help would be greatly appreciated. Thanks in advance for your help. <cpptutor2000@yahoo.com> wrote in message > Could some C++ guru help me ...

a = [ "1", "2", "3" ] v/s a = new Array ( "1", "2", "3" ) identical in all ways?
Do these result in identical objects? a = [ "1", "2", "3" ] a = new Array ( "1", "2", "3" ) On Aug 25, 1:30=A0pm, okey wrote: > Do these result in identical objects? > > a =3D [ "1", "2", "3" ] > a =3D new Array ( "1", "2", "3" ) Yes, but:- a =3D [ 2 ]; a =3D new Array( 2 ); - do not. Richard. okey wrote: > Do these result in identical objects? > > a = [ "1", "2", "3" ] > a = new Array ( "1", "2"...

Why in some compilers if a function is not declared, the compiler gives out a "warning" and not an "error"??
In ARMCC, and Microsoft C, when i use a function which is never defined or delared, it gives out a warning, not a compiling error? why? (This leads to a bug to my program since I seldom pay much attention to warnings...) Thanks for explanation! In article <0b56ca9a-d285-4b9b-a531-3a276378fea8@s12g2000prg.googlegroups.com>, lostlander <lostlander.tom@gmail.com> wrote: >In ARMCC, and Microsoft C, when i use a function which is never >defined or delared, it gives out a warning, not a compiling error? >why? It might not matter, if it never gets called (which may of cours...

Install expect -5.43 on redhat AS 3 when "make" appear "exp_main_exp.c:32: error"
I want to install expect on my old pc My os type: ------------------------------- Linux localhost.localdomain 2.6.9-11.ELsmp #1 SMP Fri May 20 18:26:27 EDT 2005 i686 i686 i386 GNU/Linux ----------------------------- first: install ActiveTcl8.6.0.0b1.289006-linux-ix86-threaded.tar.gz next: install expect-5.43 ../configure --with-tclconfig=/opt/ActiveTcl-8.6/lib/ --with-tkconfig=/ opt/ActiveTcl-8.6/lib/ --with-tclinclude=/opt/ActiveTcl-8.6/include/ when make,it appears : [root@localhost expect-5.43]# make gcc -c -I. -I. -I/opt/ActiveTcl-8.6/include -I/usr/X11R6/include - DEXP_VERSION=\&q...

RichEdit and ReportPro 3.3 "error"
Hi, I converted a regular text field which was entered via a MultiLineEdit to RichEdit format. All shows fine in the RichEdit control, however, when I print a ReportPro 3.3 report, I get an "error" printed instead of the RTF text. Of course I changed the control style to RTF stream. The only way to overcome this error was to do the following: Go the end of the text, hold SHIFT key, then press END. Then press Delete key to delete the highlighted area from end of RichEdit control. How can I avoid this without doing the above for every RichEdit control? Jamal defaul...

3/8" Drive Deep 6 Point Socket 3/8" (SKT40412)
Price:$10.15 Image: http://discountadvisor.info/image.php?id=B000RN6JL4 Best deal: http://discountadvisor.info/index.php?id=B000RN6JL4 Item #: SKT40412. Features & Benefits:Hex Size: 3/8"Diameter: 0.69Length: 1.76 Customers also search for: Discount 3/8" Drive Deep 6 Point Socket 3/8", Buy 3/8" Drive Deep 6 Point Socket 3/8", Wholesale 3/8" Drive Deep 6 Point Socket 3/8", 025141404128, ToolWeb, Sockets ...

What is "error 8"
I set up an external serial modem using the Red Hat GUI networking tool as a generic modem device. However, when I hit the "Activate" button, I get the message, "Failed to activate device with error 8." Where can I find what "error 8" means? Thanks. No one responded, but for the benefit of any other newbies who encounter this problem, here is the solution: I looked in the System Log and saw that the modem did not find a dial tone. I plugged in a phone line, and the "Activate" command worked fine. (I had not realized that "Activate" meant "Connect.") Crooked River wrote: > I set up an external serial modem using the Red Hat GUI networking tool > as a generic modem device. However, when I hit the "Activate" button, > I get the message, "Failed to activate device with error 8." Where can > I find what "error 8" means? > System error numbers can be found in /usr/include/asm/errno.h The only problem is that there is no assurance that that is what the program is displaying. #define ENOEXEC 8 /* Exec format error */ does not sound like what you are really getting. The best bet would be to look at the source of the program that is producing that error message. Unfortunately, the scattered shell scripts, programs, and whatnot concerned with networking, especially dial-up networking is a spaghetti mess, and if your ...

Bitware 3.3 Status "New" v. "Old"
Hi! I'm just trying this because I can't seem to get good tech support anywhere. I hope someone out there has experience with Bitware v. 3.3. I've been using it for a few years, and it's been great, but after I got my new computer I had a few problems. Most of them I have fixed myself, but now, unless the callers press pound after recording, when I listen to the message they've left, the status always is "New" and NEVER turns "Old." Anyone know how to fix this? I hear it is a common problem, but noone has ever posted how to fix it. Thank...

assert "foo"[3] != "foo"[3,1]...revisited
consider the following irb session; >> "foo"[0] => "f" >> "foo"[1] => "o" >> "foo"[2] => "o" >> "foo"[3] => nil >> "foo"[4] => nil >> "foo"[0,3] => "foo" >> "foo"[1,3] => "oo" >> "foo"[2,3] => "o" #note the following weird case!!! >> "foo"[3,3] => ""  #this should be nil in my mind, "foo"[3] is nil, and taking three...

"Unhandled Exception" errors in Safari 3.2.3
Links to different articles on a particular website routinely bring me to empty webpages whose urls contain Error.aspx?M=HttpUnhandledException. But this only happens in Safari (v. 3.2.3) -- the problem doesnt occur with Opera or Firefox. Any ideas/suggestions? -- iMac (24", 2.8 GHz Intel Core 2 Duo, 2GB RAM, 320 GB HDD) OS X (10.5.7) Nick Naym <nicknaym@[remove_this].gmail.com> wrote: > Links to different articles on a particular website routinely bring me to > empty webpages whose urls contain "Error.aspx?M=HttpUnhandledException." But > this only h...

Trouble compiling qt-x11-free-3.3.3 Solaris 8 SPARC g++ 3.4.3 gmake 3.79.1
QTDIR=/usr/local/src/qt PATH=$QTDIR/bin:$PATH MANPATH=$QTDIR/doc/man:$MANPATH export QTDIR PATH MANPATH cd $QTDIR ../configure -platform solaris-g++ && gmake This results in: [...] g++ -c -Wall -W -O2 -fPIC -DQT_SHARED -DQT_NO_DEBUG -DQT_NO_CUPS -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_NO_XCURSOR -DQT_NO_XRANDR -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE -DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -DQT_NO_STYLE_POCKETPC -I/usr/local/src/qt-x11-free...

3.5" DSDD ("720K") diskettes #3
Hi -- I have a number of old computers which require 3.5" DSDD diskettes and recently had an opportunity to purchase some of them (more than I will ever use, but I had to purchase the entire lot). A friend suggested that I post to a few Usenet groups pertaining to machines which have the same requirements -- somebody else probably could use some of these, too. Here are the details: Retail 10-diskette boxes, Certron brand, shrinkwrapped, inner plastic sleeve, labels included. Look and act just like brand new. I opened a couple of boxes and formatted half a dozen diskettes...

3.5" DSDD ("720K") diskettes #3
Hi -- I have a number of old computers which require 3.5" DSDD diskettes and recently had an opportunity to purchase some of them (more than I will ever use, but I had to purchase the entire lot). A friend suggested that I post to a few Usenet groups pertaining to machines which have the same requirements -- somebody else probably could use some of these, too. Here are the details: Retail 10-diskette boxes, Certron brand, shrinkwrapped, inner plastic sleeve, labels included. Look and act just like brand new. I opened a couple of boxes and formatted half a dozen diskettes without incident. They're packed in a couple of different-sized cartons: 10-box and 42-box. Cost: $1 per 10-diskette box, minimum 10-box order (one 10-box carton). USPS Media Mail is the best bet for shipping: $3.52 (for a total of $13.52) for a 10-box carton (100 diskettes), and $8.74 (for a total of $50.74) for a 42-boxer (420 diskettes). If you prefer, I can ship via UPS, but it costs a few dollars more. I'll ship them from my company address, so I can accept PayPal, VISA, MasterCard, American Express, or Discover. If you have another payment option in mind, please let me know. If you want in on this deal, please send a note to glenatacme@aol.com. I'll reply privately and if you're in the USA I'll include my toll-free number so you can call and we can discuss the details. BTW I'll be happy to ship internationally. Any questions drop ...

3.5" DSDD ("720K") diskettes #3
Hi -- I have a number of old computers which require 3.5" DSDD diskettes and recently had an opportunity to purchase some of them (more than I will ever use, but I had to purchase the entire lot). A friend suggested that I post to a few Usenet groups pertaining to machines which have the same requirements -- somebody else probably could use some of these, too. Here are the details: Retail 10-diskette boxes, Certron brand, shrinkwrapped, inner plastic sleeve, labels included. Look and act just like brand new. I opened a couple of boxes and formatted half a dozen diskettes without inc...

3.5" DSDD ("720K") diskettes #3
Hi -- I have a number of old computers which require 3.5" DSDD diskettes and recently had an opportunity to purchase some of them (more than I will ever use, but I had to purchase the entire lot). A friend suggested that I post to a few Usenet groups pertaining to machines which have the same requirements -- somebody else probably could use some of these, too. Here are the details: Retail 10-diskette boxes, Certron brand, shrinkwrapped, inner plastic sleeve, labels included. Look and act just like brand new. I opened a couple of boxes and formatted half a dozen diskettes...

3.5" DSDD ("720K") diskettes #3
Hi -- I have a number of old computers which require 3.5" DSDD diskettes and recently had an opportunity to purchase some of them (more than I will ever use, but I had to purchase the entire lot). A friend suggested that I post to a few Usenet groups pertaining to machines which have the same requirements -- somebody else probably could use some of these, too. Here are the details: Retail 10-diskette boxes, Certron brand, shrinkwrapped, inner plastic sleeve, labels included. Look and act just like brand new. I opened a couple of boxes and formatted half a dozen diskettes...

3.5" DSDD ("720K") diskettes #3
Hi -- I have a number of old computers which require 3.5" DSDD diskettes and recently had an opportunity to purchase some of them (more than I will ever use, but I had to purchase the entire lot). A friend suggested that I post to a few Usenet groups pertaining to machines which have the same requirements -- somebody else probably could use some of these, too. Here are the details: Retail 10-diskette boxes, Certron brand, shrinkwrapped, inner plastic sleeve, labels included. Look and act just like brand new. I opened a couple of boxes and formatted half a dozen diskettes without inc...

3.5" DSDD ("720K") diskettes #3
Hi -- I have a number of old computers which require 3.5" DSDD diskettes and recently had an opportunity to purchase some of them (more than I will ever use, but I had to purchase the entire lot). A friend suggested that I post to a few Usenet groups pertaining to machines which have the same requirements -- somebody else probably could use some of these, too. Here are the details: Retail 10-diskette boxes, Certron brand, shrinkwrapped, inner plastic sleeve, labels included. Look and act just like brand new. I opened a couple of boxes and formatted half a dozen diskettes...

Wile: Error when executing "make" in SimplyMepis 3.4.3
Hello, I got the following error message when I executed "make". Can anyone help me on this issue? Thanks! Mike make[1]: Entering directory `/home/zheng/Desktop/wine-0.9.28/tools' make[1]: `makedep' is up to date. make[1]: Leaving directory `/home/zheng/Desktop/wine-0.9.28/tools' make[1]: Entering directory `/home/zheng/Desktop/wine-0.9.28/libs' make[2]: Entering directory `/home/zheng/Desktop/wine-0.9.28/libs/port' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/zheng/Desktop/wine-0.9.28/libs/port' make[2]: Ent...

Well Andrew, "3" count them "3" security patches for VMS in five years ...
one was for something we don't even use right now ... decwindows ... the other two was for TCPware, one being for smtp ... now where was slowaris cert count for the last five years ... 1000+ and catching up to linux windoze garbage ... beat that ... bob@instantwhip.com (Bob Ceculski) wrote in message news:<d7791aa1.0312301715.60f5c432@posting.google.com>... > one was for something we don't even use right now ... > decwindows ... the other two was for TCPware, one > being for smtp ... now where was slowaris cert count ^^^^^^^^ > fo...

Requirement of " SAS Developer "(3+ Months Contract) at " Golden Valley, MN". #3
Dear Consultant, We have an urgent requirement with our direct client. Please go through the below job description let me know your comforts. We would appreciate if you could forward this requirement to your contacts. Job Title: SAS DEVELOPER Location: Golden Valley, MN Duration: - 3 + Months Contract Job Description: Looking for a SAS Developer with good experience in SAS Scripting + Teragram. Some additional information: Domain: Healthcare 6+Years of IT Experience. 5 + Years of Experience SAS. 3 + Years of Experience in SAS Scripting + Teragram. If the above mentioned job details ar...

Re: Well Andrew, "3" count them "3" security patches for VMS in five
Hello, the OpenVMS OS and its kernel routines do have less security wholes. But if you will count some layered product as OS, then you are a little bit right. There are a few security wholes within the TCP/IP ware. Because the new one comes from the buggy UNIX. The must one security wholes are from the buffer overflow problem. There are a lot of kernel routines and system integrated product within UNIX (Solaris and LINUX included), which do have this problem. I dont know no routine within the OpenVMS kernel with that problem. Also will be a buffer overflow within TCP/IP ware not a big proble...

["a", "b", "c", "d"] to "a, b, c, d"?
I want to process each element of an array, but the last element should be handled special. Here is an example: def p_ary(ary) str = "" ary.each do |elem| str << elem << ", " end str.chomp!(", ") str end so p_ary(["a", "f", "x", "test"]) produces "a, f, x, test". The code works, but isn't there an easier and more general way for this behaviour? martinus On Tue, 06 Apr 2004 04:23:22 -0700, Martin wrote: > I want to process each element of an array, but the last ele...

Problem compiling 8.4.10 on solaris with gcc 3.3
I get the following error: tclUnixNotify.c:297: Too few arguments in call to Tcl_JoinThread And indeed, looking at the code shows only one argument to the Tcl_JoinThread call, whereas the definition of Tcl_JoinThread in tclUnixThrd.c shows Tcl_JoinThread taking 2 arguments, the second being an int* to something called state. Troubling indeed. Configuration options: ./configure --enable-shared --enable-threads Any ideas? Kevin Penrose wrote: > > I get the following error: > tclUnixNotify.c:297: Too few arguments in call to Tcl_JoinThread > > And indeed, looking at the code shows only one argument to the > Tcl_JoinThread call, whereas the definition of Tcl_JoinThread in > tclUnixThrd.c shows Tcl_JoinThread taking 2 arguments, the second being > an int* to something called state. > > Troubling indeed. > > Configuration options: ./configure --enable-shared --enable-threads > The one who is to blame for this already confessed..., http://aspn.activestate.com/ASPN/Mail/Message/tcl-core/2619395 It will probably be fixed in CVS Head soon (or is already...) Michael Michael Schlenker wrote: > It will probably be fixed in CVS Head soon (or is already...) Already fixed. First post-8.4.10-release change. :^/ Donal. ...

Web resources about - gcc 3.3, solaris 8, compile error - 'strftime', 'localtime', etc. "not declared" - comp.lang.c

Resources last updated: 2/28/2016 9:05:03 PM