I get this error from Visual Studio 2010 Express:
1> moc_DRMPlot.cpp
1>moc\moc_DRMPlot.cpp(207): error C4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: "default-int" wird von C++ nicht unterstützt.
1>moc\moc_DRMPlot.cpp(207): error C2061: Syntaxfehler: Bezeichner 'QwtDoublePoint'
Its because the MOC compiler doesn't parse the file properly and gets confused by conditional compilation and the Qwt project keep changing their API!
It should work fine with Qwt 6.1.0 but I will try and make it backwards compatible.
If in DRMPlot.h you change:
to
does that fix it?
Last edit: Julian Cable 2013-10-30
Hi Julian,
I was already using qwt6.0.1.
hi this week, i download the soucecode dream-2.1-svn742.src.tar and compiled with qt5.1, MSVC2010, my system is xp sp3, but tried many times,the project didn't work, it give me mistake that the procedure entry point could not locate dynamic link library Qt5Widgetsd.dll。 I copyed the Qt5Widgetsd.dll from c:\qt\qt5.1.0\5.1.0\msvc2010\bin to debug dir. however,no use. I use dependency walker open dream.exe and found problem shown next, but i didnot known where was wrong in the project. msvc2010 and qt5.1 no problem. i confused, can you give me any help?
Last edit: Pinbiao Gu 2013-10-31
try putting dream.exe in c:\qt\qt5.1.0\5.1.0\msvc2010\bin.
Thanks for you repley. I tried, still can not run . Finally, I found the root of the problem. This is a bug of Qt5, the question was discribled in this web. https://bugreports.qt-project.org/browse/QTBUG-34271. By the way, another compiling bug , Qt5 + VS2010 QDateTime => not enough actual parameters for macro ‘min’ & ‘max', It solved by add DEFINES += NOMINMAX in pro file.
skygu1026@gmail.com
From: Julian Cable
Date: 2013-11-01 03:00
To: [drm:tickets]
Subject: [drm:tickets] #203 r773 build problem
try putting dream.exe in c:\qt\qt5.1.0\5.1.0\msvc2010\bin.
[tickets:#203] r773 build problem
Status: open
Created: Mon Oct 28, 2013 10:01 PM UTC by Simone Stoeppler
Last Updated: Thu Oct 31, 2013 06:08 AM UTC
Owner: nobody
I get this error from Visual Studio 2010 Express:
1> moc_DRMPlot.cpp
1>moc\moc_DRMPlot.cpp(207): error C4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: "default-int" wird von C++ nicht unterstützt.
1>moc\moc_DRMPlot.cpp(207): error C2061: Syntaxfehler: Bezeichner 'QwtDoublePoint'
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/drm/tickets/203/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Tickets:
#203Thanks, that is really useful. We had the DEFINES += NOMINMAX in the .pro file at one point, it must have got lost. I've put it back in in r778.
I think this must be something in your build environment. I can't reproduce it in any circumstances.
Yes it was related to the new structure for the folders of the libraries.