[Bf-committers] MSVC 7.1 compilation : lot of errors since the 15th of April

Stephen Swaney sswaney at centurytel.net
Mon Apr 16 16:49:55 CEST 2007


On Mon, Apr 16, 2007 at 08:15:07AM -0500, Johnny Matthews wrote:
> Revert blender/tools/blender.py to its previous version for MSVC/Scons
> and it made my build happy. It has to do with CCFLAGS and CXXFLAGS.
> This is voodoo magic to me, but this made it work :)

By default, scons adds CCFLAGS to CXXFLAGS when it does
C++ code.  The result was inappropriate or duplicate
compile options.  To correct this, we separated
CCFLAGS and CXXFLAGS.

If you are using  win32-vc-config.py for your config file,
you might try applying the following patch.

Note that some of these settings may not be appropriate for
C++ compilation.  Feedback is welcome.

The patch file is also available at
home.centurytel.net/sswaney/win32-vc-config.py


Index: win32-vc-config.py
===================================================================
RCS file: /cvsroot/bf-blender/blender/config/win32-vc-config.py,v
retrieving revision 1.25
diff -u -r1.25 win32-vc-config.py
--- win32-vc-config.py	28 Feb 2007 04:51:13 -0000	1.25
+++ win32-vc-config.py	16 Apr 2007 14:36:39 -0000
@@ -144,6 +144,7 @@
 CXX = 'cl.exe'
 
 CCFLAGS = ['/nologo', '/Og', '/Ot', '/Ob1', '/Op', '/G6','/EHsc', '/J', '/W3', '/Gd', '/MT']
+CXXFLAGS = ['/nologo', '/Og', '/Ot', '/Ob1', '/Op', '/G6','/EHsc', '/J', '/W3', '/Gd', '/MT']
 
 BF_DEBUG_FLAGS = ['/Zi', '/FR${TARGET.base}.sbr']
 


-- 
Stephen Swaney			
sswaney at centurytel.net



More information about the Bf-committers mailing list