|
|
|
|
1> Project3_main.cpp 1>c:\...\project\gameWindow.h(7): error C2059: syntax error : ';' 1>c:\...\project\gameWindow.h(240): error C2872: 'Rectangle' : ambiguous symbol 1> could be 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\wingdi.h(3989) : BOOL Rectangle(HDC,int,int,int,int)' 1> or 'c:\...\project\Graph.h(193) : Graph_lib::Rectangle' 1>c:\...\project\gameWindow.h(240): error C2872: 'Rectangle' : ambiguous symbol 1> could be 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\wingdi.h(3989) : BOOL Rectangle(HDC,int,int,int,int)' 1> or 'c:\...\project\Graph.h(193) : Graph_lib::Rectangle' 1>c:\...\project\gameWindow.h(240): error C2923: 'Graph_lib::Vector_ref' : 'Rectangle' is not a valid template type argument for parameter 'T' 1> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\wingdi.h(3989) : see declaration of 'Rectangle' 1>c:\...\project\gameWindow.h(102): error C2512: 'Graph_lib::Vector_ref' : no appropriate default constructor available 1>c:\...\project\gameWindow.h(111): error C2872: 'Rectangle' : ambiguous symbol 1> could be 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\wingdi.h(3989) : BOOL Rectangle(HDC,int,int,int,int)' 1> or 'c:\...\project\Graph.h(193) : Graph_lib::Rectangle' 1>c:\...\project\gameWindow.h(111): error C2061: syntax error : identifier 'Rectangle' 1>c:\...\project\gameWindow.h(111): error C2661: 'Graph_lib::Vector_ref<T>::push_back' : no overloaded function takes 2 arguments 1>c:\...\project\gameWindow.h(111): error C2143: syntax error : missing ';' before ')' 1>c:\...\project\gameWindow.h(111): error C2143: syntax error : missing ';' before ')' 1>c:\...\project\gameWindow.h(113): error C2662: 'Graph_lib::Vector_ref<T>::size' : cannot convert 'this' pointer from 'Graph_lib::Vector_ref' to 'const Graph_lib::Vector_ref<T> &' 1> Reason: cannot convert from 'Graph_lib::Vector_ref' to 'const Graph_lib::Vector_ref<T>' 1> Conversion requires a second user-defined-conversion operator or constructor 1>c:\...\project\gameWindow.h(113): error C2228: left of '.set_fill_color' must have class/struct/union 1>c:\...\project\gameWindow.h(116): error C2662: 'Graph_lib::Vector_ref<T>::size' : cannot convert 'this' pointer from 'Graph_lib::Vector_ref' to 'const Graph_lib::Vector_ref<T> &' 1> Reason: cannot convert from 'Graph_lib::Vector_ref' to 'const Graph_lib::Vector_ref<T>' 1> Conversion requires a second user-defined-conversion operator or constructor ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
could be...BOOL Rectangle(HDC,int,int,int,int)
or 'c:\...\project\Graph.h(193) : Graph_lib::Rectangle'
using namespace Graph_lib
somewhere (commingling namespaces)?
|
|
|
|
Line 240 Vector_ref<Graph_lib::Rectangle>vr;