By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,305 Members | 1,721 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,305 IT Pros & Developers. It's quick & easy.

vector

P: n/a

I was wondering why Visual Studio is not recognizing my vector
declarations properly.

I enter the following code :

#include <vector>

....
class whatever {

....

vector<aule_gl_window ** windows;

....

}
and it sometimes gives me an error like :

Missing semicolon after 'vector'

It does not seem to recognize anything after the identifier "vevtor"
Robin

Aug 9 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a

rs*******@sympatico.ca wrote:
I was wondering why Visual Studio is not recognizing my vector
declarations properly.

I enter the following code :

#include <vector>

...
class whatever {

...

vector<aule_gl_window ** windows;
Try std::vector. Are you sure you want a pointer to a vector?
>
...

}
and it sometimes gives me an error like :

Missing semicolon after 'vector'

It does not seem to recognize anything after the identifier "vevtor"
Robin
Cheers! --M

Aug 9 '06 #2

P: n/a

mlimber wrote:
>
Try std::vector. Are you sure you want a pointer to a vector?
I tried that and it does not work.

As for the pointer, this was my first big C++ project and there are a
few faux pas like this in my code.

Aug 9 '06 #3

P: n/a
On 9 Aug 2006 12:45:09 -0700, "rs*******@sympatico.ca"
<rs*******@sympatico.cawrote:
>
I was wondering why Visual Studio is not recognizing my vector
declarations properly.

I enter the following code :

#include <vector>

...
class whatever {

...

vector<aule_gl_window ** windows;

...

}
and it sometimes gives me an error like :

Missing semicolon after 'vector'

It does not seem to recognize anything after the identifier "vevtor"
Robin
Have you tried changing the name of your variable "windows" which
might be doing something strange to the MS compiler?

Failing that, can you get
std::vector<intintVec; to compile?

how about
std::vector<int*intPvec; ?

rossum
Aug 9 '06 #4

P: n/a
rs*******@sympatico.ca schrieb:
mlimber wrote:
>Try std::vector. Are you sure you want a pointer to a vector?

I tried that and it does not work.
Write a small example that shows the error and past the code here.

--
Thomas
Aug 9 '06 #5

P: n/a

Have you tried changing the name of your variable "windows" which
might be doing something strange to the MS compiler?

Failing that, can you get
std::vector<intintVec; to compile?

how about
std::vector<int*intPvec; ?

rossum
I'll give it a shot.

Aug 11 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.