Error c2001 in VC 2008
Up to Software Developers
sorry to ask,when I use vc2008 Express Edition, here's the error message what i get
----- CtrlLib ( GUI MT MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (1 / 14)
----- plugin\tif ( GUI MT MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (2 / 14)
----- GridCtrl ( GUI MT MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (3 / 14)
CtrlLib.icpp
----- PdfDraw ( GUI MT MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (4 / 14)
----- plugin\jpg ( GUI MT MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (5 / 14)
----- plugin\png ( GUI MT MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (6 / 14)
----- plugin\bmp ( GUI MT MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (7 / 14)
----- Web ( GUI MT MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (8 / 14)
BLITZ: util.cpp md5.cpp html.cpp socket.cpp httpsrv.cpp httpcli.cpp auth.cpp smtp.cpp sproc.cpp
D:\upp\uppsrc\CtrlLib/CtrlLib.t : warning C4819: ļǰҳ(936)ַļ Unicode ʽݶʧ
D:\upp\uppsrc\CtrlLib/CtrlLib.t(112) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(179) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(451) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(487) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(502) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(986) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1001) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1031) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1092) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1122) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1152) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1160) : warning C4819: ļǰҳ(936)ַļ Unicode ʽݶʧ
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1198) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1318) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1333) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1363) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1501) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1561) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1636) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1771) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1801) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1816) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1846) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1909) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(1924) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(2130) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(2322) : warning C4819: ļǰҳ(936)ַļ Unicode ʽݶʧ
D:\upp\uppsrc\CtrlLib/CtrlLib.t(2340) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(2370) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(2415) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(2430) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(2568) : error C2001:
D:\upp\uppsrc\CtrlLib/CtrlLib.t(112) : fatal error C1057: ļ
$blitz.cpp
D:\upp\uppsrc\Web\auth.cpp : warning C4819: ļǰҳ(936)ַļ Unicode ʽݶʧ
D:\upp\uppsrc\Web\auth.cpp(207) : error C2001:
D:\upp\uppsrc\Web\smtp.cpp : warning C4819: ļǰҳ(936)ַļ Unicode ʽݶʧ
CtrlLib: 1 file(s) built in (0:01.28), 1286 msecs / file, duration = 2766 msecs, parallelization 97%
D:\upp\uppsrc\Web/Web.t : warning C4819: ļǰҳ(936)ַļ Unicode ʽݶʧ
D:\upp\uppsrc\Web/Web.t(36) : error C2001:
D:\upp\uppsrc\Web/Web.t(128) : error C2001:
D:\upp\uppsrc\Web/Web.t(147) : error C2001:
D:\upp\uppsrc\Web/Web.t(163) : error C2001:
D:\upp\uppsrc\Web/Web.t(178) : error C2001:
D:\upp\uppsrc\Web/Web.t(36) : fatal error C1057: ļ
Web_init.icpp
Web: 10 file(s) built in (0:01.74), 174 msecs / file, duration = 3031 msecs, parallelization 78%
There were errors. (0:03.45)
So, what's the matter? My OS is Chinese.
Hi there,
I'm afraid I can't help you compile under VC++ as I don't use that IDE for openWind. If you download and install ultimate++ from
you shouldn't have any problems.
Nick
I'm acturally using ultimate++(TheIDE), and I set the build method to 'MSC9 Debug'. I've already installed VC2008 EE on my computer.
if i swith the build method to 'Mingw', I still get error message. as follows.
----- CtrlLib ( GUI MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (1 / 14)
----- plugin\tif ( GUI MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (2 / 14)
----- GridCtrl ( GUI MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (3 / 14)
----- PdfDraw ( GUI MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (4 / 14)
----- plugin\jpg ( GUI MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (5 / 14)
----- plugin\png ( GUI MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (6 / 14)
----- plugin\bmp ( GUI MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (7 / 14)
----- Web ( GUI MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (8 / 14)
BLITZ: util.cpp md5.cpp html.cpp httpsrv.cpp httpcli.cpp auth.cpp smtp.cpp sproc.cpp
----- CtrlCore ( GUI MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (9 / 14)
----- RichText ( GUI MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (10 / 14)
----- Draw ( GUI MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (11 / 14)
----- Core ( GUI MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (12 / 14)
----- plugin\z ( GUI MT GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (13 / 14)
----- openWind ( GUI MT MAIN GCC DEBUG DEBUG_FULL BLITZ WIN32 ) (14 / 14)
BLITZ: ZVI.cpp TurbineType.cpp TurbineTypeDlg.cpp LayerTree.cpp GPS.cpp main.cpp Utils.cpp Graphnix.cpp WaspWRG.cpp WRGLayer.cpp RasterLay
er.cpp WRG.cpp ImageLayer.cpp Layer.cpp FontPusher.cpp VectorLayer.cpp SiteLayer.cpp MetMastLayer.cpp KML.cpp Shape.cpp EnergyCapture.
cpp Legality.cpp Optimiser.cpp Wake.cpp LayerPropDlg.cpp
Web: 8 file(s) built in (0:08.30), 1038 msecs / file, duration = 13312 msecs, parallelization 69%
In file included from D:/upp/out/openWind/MINGW.Debug.Debug_full.Gui.Main.Mt\$blitz.cpp:37:
D:\MyApps\openWind\Graphnix.cpp: In static member function 'static void GraphNix::SortColors(Upp::Array<Upp::Color>&
':
D:\MyApps\openWind\Graphnix.cpp:1261: error: no matching function for call to 'Sort(Upp::Array<Upp::Color>&, bool ()(const Upp::Color&, co
nst Upp::Color&
)'
D:\upp\uppsrc/Core/Algo.h:842: note: candidates are: void Upp::Sort(T&, const Less&
[with T = Upp::Array<Upp::Color>, Less = bool ()(cons
t Upp::Color&, const Upp::Color&
]
D:\upp\uppsrc/RichText/Para.h:282: note: void Upp::Sort(Upp::Vector<Upp::RichPara::Tab>&
In file included from D:/upp/out/openWind/MINGW.Debug.Debug_full.Gui.Main.Mt\$blitz.cpp:102:
D:\MyApps\openWind\VectorLayer.cpp: In member function 'virtual void PointLayer::Export(void*)':
D:\MyApps\openWind\VectorLayer.cpp:1216: error: conversion from 'Upp::int32' to 'const Upp::Value' is ambiguous
D:\upp\uppsrc/Core/Value.h:180: note: candidates are: Upp::Value::Value(Upp::Value::Void*) <near match>
D:\upp\uppsrc/Core/Value.h:160: note: Upp::Value::Value(bool)
D:\upp\uppsrc/Core/Value.h:159: note: Upp::Value::Value(double)
D:\upp\uppsrc/Core/Value.h:158: note: Upp::Value::Value(Upp::int64)
D:\upp\uppsrc/Core/Value.h:157: note: Upp::Value::Value(int)
D:\upp\uppsrc/Core/Value.h:156: note: Upp::Value::Value(const char*) <near match>
D:\MyApps\openWind\VectorLayer.cpp:1216: error: conversion from 'Upp::int32' to 'const Upp::Value' is ambiguous
D:\upp\uppsrc/Core/Value.h:180: note: candidates are: Upp::Value::Value(Upp::Value::Void*) <near match>
D:\upp\uppsrc/Core/Value.h:160: note: Upp::Value::Value(bool)
D:\upp\uppsrc/Core/Value.h:159: note: Upp::Value::Value(double)
D:\upp\uppsrc/Core/Value.h:158: note: Upp::Value::Value(Upp::int64)
D:\upp\uppsrc/Core/Value.h:157: note: Upp::Value::Value(int)
D:\upp\uppsrc/Core/Value.h:156: note: Upp::Value::Value(const char*) <near match>
D:\MyApps\openWind\VectorLayer.cpp: In member function 'virtual void PointLayer:
rawLayer(Upp:
raw&, Upp::ImageBuffer&, void*)':
D:\MyApps\openWind\VectorLayer.cpp:4045: error: no match for 'operator=' in 'ibBk = Upp::ImageBuffer(((Upp::Image&
(& tmpBk)))'
D:\upp\uppsrc/Draw/Image.h:103: note: candidates are: void Upp::ImageBuffer:
perator=(Upp::Image&
D:\upp\uppsrc/Draw/Image.h:104: note: void Upp::ImageBuffer:
perator=(Upp::ImageBuffer&
D:\MyApps\openWind\VectorLayer.cpp:4088: error: no match for 'operator=' in 'ibBk = Upp::ImageBuffer(((Upp::Image&
(& ib)))'
D:\upp\uppsrc/Draw/Image.h:103: note: candidates are: void Upp::ImageBuffer:
perator=(Upp::Image&
D:\upp\uppsrc/Draw/Image.h:104: note: void Upp::ImageBuffer:
perator=(Upp::ImageBuffer&
D:\MyApps\openWind\VectorLayer.cpp: In member function 'virtual void PolygonLayer:
rawLayer(Upp:
raw&, Upp::ImageBuffer&, void*)':
D:\MyApps\openWind\VectorLayer.cpp:4134: error: no match for 'operator=' in 'ibBk = Upp::ImageBuffer(((Upp::Image&
(& imBk)))'
D:\upp\uppsrc/Draw/Image.h:103: note: candidates are: void Upp::ImageBuffer:
perator=(Upp::Image&
D:\upp\uppsrc/Draw/Image.h:104: note: void Upp::ImageBuffer:
perator=(Upp::ImageBuffer&
D:\MyApps\openWind\VectorLayer.cpp:4211: error: no match for 'operator=' in 'ibBk = Upp::ImageBuffer(((Upp::Image&
(& ib)))'
D:\upp\uppsrc/Draw/Image.h:103: note: candidates are: void Upp::ImageBuffer:
perator=(Upp::Image&
D:\upp\uppsrc/Draw/Image.h:104: note: void Upp::ImageBuffer:
perator=(Upp::ImageBuffer&
D:\MyApps\openWind\VectorLayer.cpp: In member function 'virtual void LineLayer:
rawLayer(Upp:
raw&, Upp::ImageBuffer&, void*)':
D:\MyApps\openWind\VectorLayer.cpp:4253: error: no match for 'operator=' in 'ibBk = Upp::ImageBuffer(((Upp::Image&
(& imBk)))'
D:\upp\uppsrc/Draw/Image.h:103: note: candidates are: void Upp::ImageBuffer:
perator=(Upp::Image&
D:\upp\uppsrc/Draw/Image.h:104: note: void Upp::ImageBuffer:
perator=(Upp::ImageBuffer&
D:\MyApps\openWind\VectorLayer.cpp:4299: error: no match for 'operator=' in 'ibBk = Upp::ImageBuffer(((Upp::Image&
(& ib)))'
D:\upp\uppsrc/Draw/Image.h:103: note: candidates are: void Upp::ImageBuffer:
perator=(Upp::Image&
D:\upp\uppsrc/Draw/Image.h:104: note: void Upp::ImageBuffer:
perator=(Upp::ImageBuffer&
In file included from D:/upp/out/openWind/MINGW.Debug.Debug_full.Gui.Main.Mt\$blitz.cpp:142:
D:\MyApps\openWind\Optimiser.cpp: In member function 'double Optimiser:
ush(void*, double&, EnergyCapture*, Upp::Array<Turbine*>&, Upp::A
rray<SiteLayer*>&, PointfArray&, PointfArray&, doubleArray&, boolArray&, PointfArray&, boolArray&, boolArray&
':
D:\MyApps\openWind\Optimiser.cpp:622: error: expected unqualified-id before numeric constant
D:\MyApps\openWind\Optimiser.cpp:624: error: lvalue required as left operand of assignment
D:\MyApps\openWind\Optimiser.cpp:626: error: no matching function for call to 'max(double&, int)'
openWind: 25 file(s) built in (0:05.39), 215 msecs / file, duration = 10766 msecs, parallelization 75%
There were errors. (0:15.93)
I am not the most qualified person to help you setup ultimate++. However, a couple of ideas do spring to mind. Have you tried compiling one of the example projects?
Did you install the appropriate SDK for VC++?
The version of the source code which you have is unfortunately not 100% compatible with MINGW. I have since fixed this and the next version will be. If you can't fix these errors yourself, perhaps the best thing would be to subscribe to the RSS feed on the News page so that you will be informed the minute that the next version is available. I am currently finishing off the eddy viscosity and turbulence intensity models but as soon as they are ready I will upload a new version and post a news item.
Nick