[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: back_push error (linux)???? help
From: |
André Pönitz |
Subject: |
Re: back_push error (linux)???? help |
Date: |
21 May 2002 06:48:13 GMT |
zoe <address@hidden> wrote:
> I try to compile the following program using gcc.
Why don't you cut it down to a minimum? Not everybody has the <Gl/glut.h>
header, and you don't even tell in which line the compiler sees the
problem.
> But I got the following a lot of errors, all are:
> "request for member 'push_back' in 'd_message', which is of
> non-aggregate type 'int' "...
You usages of "push_back" in the code you show look ok.
> Is #include <vector> correct???
Yes.
> any different between that in linux????
There aren't OS issues here I think...
> ~~~~~~~~~~~~~~~~~~~~~~~~`code`~~~~~~~~~~~~~~~~~~~~~~~~~~`
> #include <GL/glut.h>
>
> #include <vector>
> using namespace std;
>
> #include "f00TexturedFont.h"
> #include "f00TimeBase.h"
> #include "f00StarField.h"
>
>
> // Global variables. Terrible, but everpresent in these small demos.
> Alas.
> f00TexturedFont d_statusFont;
> f00TexturedFont d_blockFont;
> int d_screenW = 1;
> int d_screenH = 1;
> vector< string > d_message;
Urm...
Did you include <string> somewhere?
Andre'
PS:
> void
> main( int argc, char* argv[] )
main is 'int', not 'void'...
--
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)