From: Speed D. <no...@so...> - 2013-02-22 18:01:00
|
#787: Some useful warnings are disabled in MSVC builds, when compared to GCC builds --------------------------------+------------------------------------------- Reporter: pouillot | Owner: pouillot Type: defect | Status: accepted Priority: minor | Milestone: 2.1.0 Component: Build system | Version: 2.1.0-dev Keywords: warnings msvc code | --------------------------------+------------------------------------------- Changes (by pouillot): * milestone: to be defined => 2.1.0 Comment: A first step in r5171 : * warning level raised to 4 (was 3 by default), * hidden some useless "newcomers" from level 4. Not checked if this new MSVC "warning set" is equivalent to our GCC one, but it is closer than what we had before : please test and report. Moreover, I also inhibited "C4251 : class 'xxx' needs to have dll- interface to be used by clients of class 'yyy'". Not sure it is really a good idea, even if it doesn't seem to cause any harm till now. Here's what Joe says about it : I don't know if it requires any attention at all. IIUC, the main point is that all modules MUST use the same MSVC runtime. This is already stated in the SD docs/wiki. They changed something between MSVC 9 and MSVC10 that is causing the warning. Here are some links if anyone is interested: * https://connect.microsoft.com/VisualStudio/feedback/details/696593/vc-10-vs-2010 -basic-string-exports * http://support.microsoft.com/kb/168958/en-us * http://msdn.microsoft.com/en-us/library/ms174286.aspx * http://stackoverflow.com/questions/767579/exporting-classes-containing- std-objects-vector-map-etc-from-a-dll * http://www.windows-api.com/microsoft/VC-Language/30952961/a-solution- to-warning-c4251--class-needs-to-have-dllinterface.aspx -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/787#comment:3> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |