* gcc 3.0.2 vector problem
@ 2001-12-18 12:04 Philip Cheng
2001-12-18 12:31 ` Dan, Ho-Jin
0 siblings, 1 reply; 2+ messages in thread
From: Philip Cheng @ 2001-12-18 12:04 UTC (permalink / raw)
To: gcc-help
I am compiling my program on my Linux 7.2 with gcc 3.0.2 and I got the
following error. I did not get this error with gcc 2.95.2
Anyone knows how I can solve this problem?
Thanks
Philip
test.cpp:
--------
#include <vector>
vector<int> ww;
main()
{
}
Error:
test.cpp:2: 'vector' is used as a type, but is not defined as a type.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gcc 3.0.2 vector problem
2001-12-18 12:04 gcc 3.0.2 vector problem Philip Cheng
@ 2001-12-18 12:31 ` Dan, Ho-Jin
0 siblings, 0 replies; 2+ messages in thread
From: Dan, Ho-Jin @ 2001-12-18 12:31 UTC (permalink / raw)
To: Philip Cheng; +Cc: gcc-help
add namespace for example...
#include <vector>
using namespace std;
or.
std::vector<int> ww;
Regards
Dan, Ho-Jin
Philip Cheng wrote:
>I am compiling my program on my Linux 7.2 with gcc 3.0.2 and I got the
>following error. I did not get this error with gcc 2.95.2
>Anyone knows how I can solve this problem?
>
>Thanks
>
>Philip
>
>
>test.cpp:
>--------
>#include <vector>
>vector<int> ww;
>
>main()
>{
>}
>
>Error:
>test.cpp:2: 'vector' is used as a type, but is not defined as a type.
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-12-18 20:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-18 12:04 gcc 3.0.2 vector problem Philip Cheng
2001-12-18 12:31 ` Dan, Ho-Jin
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).