public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13790] New: bad include
@ 2004-01-21 8:15 piotoru at zodiac dot mimuw dot edu dot pl
2004-01-21 8:25 ` [Bug c++/13790] " dhazeghi at yahoo dot com
0 siblings, 1 reply; 2+ messages in thread
From: piotoru at zodiac dot mimuw dot edu dot pl @ 2004-01-21 8:15 UTC (permalink / raw)
To: gcc-bugs
I wrote this program:
#include <string>
int main()
{
string aaa;
return 0;
}
and try to compile it in few ways:
g++ a.c
g++ -I/usr/include/c++/3.3 a.c
and compiler said that i didn't define 'string'
after that I try:
g++ -I/usr/include/g++-3
so compiler said that I didn't defien 'size_t'
--
Summary: bad include
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P1
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: piotoru at zodiac dot mimuw dot edu dot pl
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i486-pc-linux
GCC host triplet: i486-pc-linux
GCC target triplet: i486-pc-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13790
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/13790] bad include
2004-01-21 8:15 [Bug c++/13790] New: bad include piotoru at zodiac dot mimuw dot edu dot pl
@ 2004-01-21 8:25 ` dhazeghi at yahoo dot com
0 siblings, 0 replies; 2+ messages in thread
From: dhazeghi at yahoo dot com @ 2004-01-21 8:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dhazeghi at yahoo dot com 2004-01-21 08:24 -------
You're missing the std namespace. See <http://gcc.gnu.org/bugs.html#nonbugs> under "New in
GCC 3.0". Either you must always refer to string as 'std::string', or do using 'namespace std;'
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13790
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-01-21 8:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-21 8:15 [Bug c++/13790] New: bad include piotoru at zodiac dot mimuw dot edu dot pl
2004-01-21 8:25 ` [Bug c++/13790] " dhazeghi at yahoo dot com
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).