Bugs item #2846562, was opened at 2009-08-28 15:38 Message generated for change (Tracker Item Submitted) made by cbrockman You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=462816&aid=2846562&group_id=51305
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: Subversion TRUNK Status: Open Resolution: None Priority: 5 Private: No Submitted By: Charles Brockman (cbrockman) Assigned to: Nobody/Anonymous (nobody) Summary: [wxPlotCtrl] Ambiguous Call to floor in plotdraw.cpp Initial Comment: I tried to compile the plotctrl project in Microsoft Visual C++ 2008 under Windows and received the following errors: plotdraw.cpp ..\src\plotdraw.cpp(1171) : error C2668: 'floor' : ambiguous call to overloaded function C:\Program Files\Microsoft Visual Studio 9.0\VC\include\math.h(559): could be 'long double floor(long double)' C:\Program Files\Microsoft Visual Studio 9.0\VC\include\math.h(511): or 'float floor(float)' C:\Program Files\Microsoft Visual Studio 9.0\VC\include\math.h(137): or 'double floor(double)' while trying to match the argument list '(int)' ..\src\plotdraw.cpp(1173) : error C2668: 'floor' : ambiguous call to overloaded function C:\Program Files\Microsoft Visual Studio 9.0\VC\include\math.h(559): could be 'long double floor(long double)' C:\Program Files\Microsoft Visual Studio 9.0\VC\include\math.h(511): or 'float floor(float)' C:\Program Files\Microsoft Visual Studio 9.0\VC\include\math.h(137): or 'double floor(double)' while trying to match the argument list '(int)' To correct the errors I added a static_cast<double> at both lines as shown in the attached patch. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=462816&aid=2846562&group_id=51305 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ wxCode-users mailing list wxCode-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxcode-users