This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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.
>
>
>
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |