Building Debug QwtScaleDiv LNK 2005 error
Hi!
I have a strange issue at the moment:
I've made a new class using QwtScaleDiv's function: upperBound() and lowerBound() for an active QwtPlot. When building in debug, I get the following error:
- Error 1 error LNK2005: "public: double __thiscall QwtScaleDiv::lowerBound(void)const " (?lowerBound@QwtScaleDiv@@QBENXZ) already defined in overlayView.obj qwtd5.lib
- Error 2 error LNK2005: "public: double __thiscall QwtScaleDiv::upperBound(void)const " (?upperBound@QwtScaleDiv@@QBENXZ) already defined in overlayView.obj qwtd5.lib
Now the thing is, the linker error is referring to the overlayView object whilest this object already excist for a long time and never has given this problem. Now when I try to use in my new class the QwtScaleDiv::lowerbound() and uperbound(), I recieve this linker error. When I remove the code usiing QwtScaleDiv from this new class, the error is gone...
I really do not have a goddamn clue! Any ideas?
Greetings,
Robin
Re: Building Debug QwtScaleDiv LNK 2005 error
Solved the issue. To many including's off the same header file was the problem. For some reason, the Visual Studio compiler couldn't do it. So I made some cross references to get the right information. Topic can be closed!