public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24970] New: Error in header file: ctime:69: error: ::tm has not been declared
@ 2005-11-21 13:59 schnetter at aei dot mpg dot de
2005-11-21 14:01 ` [Bug c++/24970] " schnetter at aei dot mpg dot de
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: schnetter at aei dot mpg dot de @ 2005-11-21 13:59 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2221 bytes --]
When trying to compile the attached source file with
$ ~/gcc/bin/g++ --version
g++ (GCC) 4.2.0 20051121 (experimental)
with the options
/Users/eschnett/gcc/bin/g++ -DCARPET_INT -DCARPET_REAL -DCARPET_COMPLEX
-mlongcall -ftrapv -fwrapv -fbounds-check -g3 -Wall -Wshadow -Wpointer-arith
-Wcast-qual -Wcast-align -Woverloaded-virtual -c -o
$current_wd/patch_system.cc.o $current_wd/patch_system.cc -I"/sw/include"
-I"/sw/include" -I"/Users/eschnett/petsc-2.1.6/include"
-I"/Users/eschnett/petsc-2.1.6/bmake/macx"
-I"/Users/eschnett/Cvanilla/arrangements/AEIThorns/AHFinderDirect/src"
-I"/Users/eschnett/Cvanilla/arrangements/AEIThorns/AHFinderDirect/src/include"
-I"/Users/eschnett/Cvanilla/configs/einstein-orange-gcc-debug/config-data"
-I"/Users/eschnett/Cvanilla/configs/einstein-orange-gcc-debug/bindings/include"
-I"/Users/eschnett/Cvanilla/src/include"
-I"/Users/eschnett/Cvanilla/arrangements"
-I"/Users/eschnett/Cvanilla/configs/einstein-orange-gcc-debug/bindings/Configuration/Thorns"
-I"/Users/eschnett/Cvanilla/arrangements/AEIThorns/AHFinderDirect/src/patch"
-I"/Users/eschnett/Cvanilla/arrangements/AEIThorns/AHFinderDirect/src/patch/include"
-DTHORN_IS_AHFinderDirect -DCCODE
then I receive errors beginning with
/Users/eschnett/gcc/lib/gcc/powerpc-apple-darwin8.3.0/4.2.0/../../../../include/c++/4.2.0/ctime:69:
error: ::tm has not been declared
/Users/eschnett/gcc/lib/gcc/powerpc-apple-darwin8.3.0/4.2.0/../../../../include/c++/4.2.0/ctime:71:
error: ::clock has not been declared
/Users/eschnett/gcc/lib/gcc/powerpc-apple-darwin8.3.0/4.2.0/../../../../include/c++/4.2.0/ctime:72:
error: ::difftime has not been declared
--
Summary: Error in header file: ctime:69: error: ::tm has not
been declared
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: schnetter at aei dot mpg dot de
GCC build triplet: powerpc-apple-darwin8.3.0
GCC host triplet: powerpc-apple-darwin8.3.0
GCC target triplet: powerpc-apple-darwin8.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24970
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/24970] Error in header file: ctime:69: error: ::tm has not been declared
2005-11-21 13:59 [Bug c++/24970] New: Error in header file: ctime:69: error: ::tm has not been declared schnetter at aei dot mpg dot de
@ 2005-11-21 14:01 ` schnetter at aei dot mpg dot de
2005-11-21 14:03 ` schnetter at aei dot mpg dot de
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: schnetter at aei dot mpg dot de @ 2005-11-21 14:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from schnetter at aei dot mpg dot de 2005-11-21 14:01 -------
Created an attachment (id=10309)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10309&action=view)
Failing source code
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24970
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/24970] Error in header file: ctime:69: error: ::tm has not been declared
2005-11-21 13:59 [Bug c++/24970] New: Error in header file: ctime:69: error: ::tm has not been declared schnetter at aei dot mpg dot de
2005-11-21 14:01 ` [Bug c++/24970] " schnetter at aei dot mpg dot de
@ 2005-11-21 14:03 ` schnetter at aei dot mpg dot de
2005-11-21 14:55 ` [Bug libstdc++/24970] " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: schnetter at aei dot mpg dot de @ 2005-11-21 14:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from schnetter at aei dot mpg dot de 2005-11-21 14:03 -------
Created an attachment (id=10310)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10310&action=view)
Failing preprocessed sourc code (gzipped)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24970
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libstdc++/24970] Error in header file: ctime:69: error: ::tm has not been declared
2005-11-21 13:59 [Bug c++/24970] New: Error in header file: ctime:69: error: ::tm has not been declared schnetter at aei dot mpg dot de
2005-11-21 14:01 ` [Bug c++/24970] " schnetter at aei dot mpg dot de
2005-11-21 14:03 ` schnetter at aei dot mpg dot de
@ 2005-11-21 14:55 ` pinskia at gcc dot gnu dot org
2005-11-21 15:01 ` [Bug other/24970] " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-21 14:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2005-11-21 14:55 -------
# 1
"/Users/eschnett/Cvanilla/configs/einstein-orange-gcc-debug/bindings/Configuration/Thorns/time.h"
1 3 4
Hmm, it is including the wrong time.h for some reason.
Could you add -v and provide the output, I am mainly looking for the include
patch order.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24970
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/24970] Error in header file: ctime:69: error: ::tm has not been declared
2005-11-21 13:59 [Bug c++/24970] New: Error in header file: ctime:69: error: ::tm has not been declared schnetter at aei dot mpg dot de
` (2 preceding siblings ...)
2005-11-21 14:55 ` [Bug libstdc++/24970] " pinskia at gcc dot gnu dot org
@ 2005-11-21 15:01 ` pinskia at gcc dot gnu dot org
2005-11-21 15:02 ` pinskia at gcc dot gnu dot org
2005-11-21 20:53 ` schnetter at aei dot mpg dot de
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-21 15:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2005-11-21 15:01 -------
We have in libstdc++:
#include <time.h>
So this is invalid. -I does:
-I dir
Add the directory dir to the list of directories to be searched
for header files. Directories named by -I are searched before the
standard system include directories. If the directory dir is a
standard system include directory, the option is ignored to ensure
that the default search order for system directories and the spe-
cial treatment of system headers are not defeated .
either use -iquote which is new for 4.0.0 or use -idirafter
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|libstdc++ |other
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24970
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/24970] Error in header file: ctime:69: error: ::tm has not been declared
2005-11-21 13:59 [Bug c++/24970] New: Error in header file: ctime:69: error: ::tm has not been declared schnetter at aei dot mpg dot de
` (3 preceding siblings ...)
2005-11-21 15:01 ` [Bug other/24970] " pinskia at gcc dot gnu dot org
@ 2005-11-21 15:02 ` pinskia at gcc dot gnu dot org
2005-11-21 20:53 ` schnetter at aei dot mpg dot de
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-21 15:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2005-11-21 15:02 -------
As I said this is invalid.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24970
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/24970] Error in header file: ctime:69: error: ::tm has not been declared
2005-11-21 13:59 [Bug c++/24970] New: Error in header file: ctime:69: error: ::tm has not been declared schnetter at aei dot mpg dot de
` (4 preceding siblings ...)
2005-11-21 15:02 ` pinskia at gcc dot gnu dot org
@ 2005-11-21 20:53 ` schnetter at aei dot mpg dot de
5 siblings, 0 replies; 7+ messages in thread
From: schnetter at aei dot mpg dot de @ 2005-11-21 20:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from schnetter at aei dot mpg dot de 2005-11-21 20:53 -------
Thanks for finding the reason.
The include file was actually called "Time.h", but my file system is case
insensitive.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24970
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-11-21 20:53 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-21 13:59 [Bug c++/24970] New: Error in header file: ctime:69: error: ::tm has not been declared schnetter at aei dot mpg dot de
2005-11-21 14:01 ` [Bug c++/24970] " schnetter at aei dot mpg dot de
2005-11-21 14:03 ` schnetter at aei dot mpg dot de
2005-11-21 14:55 ` [Bug libstdc++/24970] " pinskia at gcc dot gnu dot org
2005-11-21 15:01 ` [Bug other/24970] " pinskia at gcc dot gnu dot org
2005-11-21 15:02 ` pinskia at gcc dot gnu dot org
2005-11-21 20:53 ` schnetter at aei dot mpg dot de
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).