PDA

View Full Version : fatal error C1202: recursive type or func



mqt
5th July 2013, 07:30
While compiling a project in Visual Studio 2008, I am getting the following error

c:\qwt-5.2.3\include\qwt_plot_item.h(114) : fatal error C1202: recursive type or function dependency context too complex

The corresponding line is

explicit QwtPlotItem(const QwtText &title = QwtText());

In QWT 6.1, the compilation just fails at that line without error message. In 5.2.3, I am getting the above error message. For now, I am commenting that line and able to compile. Any idea how to solve the actual issue?
Searching in google, I found that the C1202 error is related to optimization setings. But could not solve.

Uwe
5th July 2013, 15:14
Qwt 5.x is several years on the market and nobody ever reported such a problem. So it is very likely that you did something wrong on your side.

What happens when you build the Qwt examples - and what happens when building a simple Qwt demo application with an installed version of Qwt 6.1 using qmake with qwt.prf included ( see http://qwt.sourceforge.net/qwtinstall.html#COMPILEANDLINKAPP ) ?

Uwe