S
silversurfer2025
Hello world,
I seem to go from one tricky error to the other (at least tricky for
me). I am using qt and another code-package where many other files are
stored which I need (written by someone else). The problem is that
within this package and qt there are two definitions of the class
'Region' such that I get the compiler-error:
use of 'Region' is ambiguous
/usr/local/Trolltech/Qt-4.1.4/include/QtGui/qwindowdefs.h:124: error:
first declared as 'typedef struct _XRegion* Region' here
.../../robotcontrol/src/./ImageProcessing/ObjectAnalysis/ChainCoding.h:10:
error: also declared as 'class Tribots::Region' here
I tried explicitly selecting one of the "Regions" by providing a
namespace in front of them e.g. myNameSpace::Region but it did not
work, it still tells me it would be ambiguous... What can I do in such
a situation? Apparently both classes are not written by me and I do not
want to change any of both because it would destroy a lot of
dependencies in other classes...
Someone please help?
Thanks a lot in advance
T.K.
I seem to go from one tricky error to the other (at least tricky for
me). I am using qt and another code-package where many other files are
stored which I need (written by someone else). The problem is that
within this package and qt there are two definitions of the class
'Region' such that I get the compiler-error:
use of 'Region' is ambiguous
/usr/local/Trolltech/Qt-4.1.4/include/QtGui/qwindowdefs.h:124: error:
first declared as 'typedef struct _XRegion* Region' here
.../../robotcontrol/src/./ImageProcessing/ObjectAnalysis/ChainCoding.h:10:
error: also declared as 'class Tribots::Region' here
I tried explicitly selecting one of the "Regions" by providing a
namespace in front of them e.g. myNameSpace::Region but it did not
work, it still tells me it would be ambiguous... What can I do in such
a situation? Apparently both classes are not written by me and I do not
want to change any of both because it would destroy a lot of
dependencies in other classes...
Someone please help?
Thanks a lot in advance
T.K.