no go, still same error message
George Lam
Posts
-
vector <t_vertice> puntos; [modified] -
vector <t_vertice> puntos; [modified]The following code on a linux gcc compiler gave me an error message: error - SO C++ forbids declaration of "vector" with no type apparently, vector dd; is okay because double is a known type How can I make g++ recognize t_vertice as a valid type? Or how can I switch off the ISO compatibilty on the g++ compiler? _________________________________________________ #ifndef HSI3D_H #define HSI3D_H #include #include #include #include "../imageplus.h" #include class HSI3D : public QGLWidget { Q_OBJECT public: HSI3D(QWidget *parent=0, const char *name=0); HSI3D(const ImagePlus &Image, QWidget *parent=0, const char *name=0); ~HSI3D(); typedef struct t_vertice{ uchar red; uchar green; uchar blue; float h; uchar s; uchar i; }t_vertice, *ptrtvertice; vector puntos; int quants_punts; -- modified at 0:02 Thursday 1st March, 2007
-
call a method in another projectI meant multiple project solution. glam
-
call a method in another projectI have a multiple object solution. How do I call from project2 a method in project1? I thought it is project1.method1();. Also, do I need to add header and other stuff to project1 so that it knows how to find method1? If there is some sample code available on line, that would be easiest. The projects are a mixture of C#, C++, and C. I am most interested in the C or C++ angle. I would have search for the solution, but I have no idea what keyword to begin with. Thanks. glam