gnugo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnugo-devel] VC compile problems in Debug mode


From: Trevor Morris
Subject: Re: [gnugo-devel] VC compile problems in Debug mode
Date: Fri, 01 Feb 2002 10:54:14 -0500

Yes, I've had the same problem, and have recently submitted a
much less satisfactory patch, which this backs out.

Dan: There's a unix style line-feed in the file in CVS, which 
needs to be fixed.

This patch also includes other changes to the dsp.  The IDE
deleted the /Ze (as it's the default).  Also, it's recommended
to include debug symbols even in Release builds (they're
stored separately in the PDB file), so that's also added.

http://www.public32.com/games/go/trevor_1_24.5

-Trevor


At 10:49 PM 1/31/2002 +0100, Wietze Brandsma wrote:
>I cannot compile Gnu Go 3.1.23 with VC in Debug mode, but the Release
>build goes just fine. 
>I have this compile problem with Debug mode also with Gnu Go 3.1.22 and
>3.1.21
>I am using a Windows 2000 box, does anyone else with access to VC have
>the
>same problem?
>
>This problem can be fixed with unchecking "Disable Language Extensions"
>for mkpat in the Catagory "Customize" of the "C/C++" tab for the "Win 32
>Debug" Settings in the "Project Settings..." dialog.
>This is the same as removing the /Za "Project Option" for mkpat.
>
>>From the VC help file:
>
>/Za Disable Language Extensions (check box selected) ANSI C
>compatibility. Language constructs not compatible with ANSI C are
>flagged as errors. 
>/Ze (Check box cleared) Enables Microsoft extensions. 
>
>
>The error messages I got were:
>
>--------------------Configuration: mkpat - Win32
>Debug--------------------
>Compiling...
>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for
>80x86
>Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
>cl /MLd /Za /W3 /Gm /GX /ZI /Od /I ".." /I "..\utils" /D "_DEBUG" /D
>"HAVE_CONFIG_H" /D "WIN32" /D
>"_CONSOLE" /D "_MBCS" /FR"Debug/" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c 
>   "D:\vc\gnugo-3.1.23\patterns\mkpat.c"
>mkpat.c
>c:\program files\visual studio\vc98\include\winnt.h(357) : error C2467:
>illegal declaration of anonymous 'struct'
>
>[snip]
>
>Error executing cl.exe.
>
>gnugo.exe - 79 error(s), 1 warning(s)
>
>
>I have included a patch for mkpat.dsp which fixes this problem.
>
>Wietze
>--diff -ur gnugo-3.1.23/patterns/mkpat.dsp gnugo-3.1.23.1/patterns/mkpat.dsp
>--- gnugo-3.1.23/patterns/mkpat.dsp    Tue Oct  2 19:36:59 2001
>+++ gnugo-3.1.23.1/patterns/mkpat.dsp  Mon Jan 28 22:05:20 2002
>@@ -42,7 +42,7 @@
> # PROP Ignore_Export_Lib 0
> # PROP Target_Dir ""
> # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D 
> "_MBCS" /YX /FD /c
>-# ADD CPP /W3 /GX /O2 /I ".." /I "..\utils" /D "NDEBUG" /D "WIN32" /D 
>"_CONSOLE" /D "_MBCS" /D "HAVE_CONFIG_H" /FD /c
>+# ADD CPP /Ze /W3 /GX /O2 /I ".." /I "..\utils" /D "NDEBUG" /D "WIN32" /D 
>"_CONSOLE" /D "_MBCS" /D "HAVE_CONFIG_H" /FD /c
> # SUBTRACT CPP /nologo /YX
> # ADD BASE RSC /l 0x409 /d "NDEBUG"
> # ADD RSC /l 0x409 /d "NDEBUG"
>@@ -67,7 +67,7 @@
> # PROP Ignore_Export_Lib 0
> # PROP Target_Dir ""
> # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D 
> "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
>-# ADD CPP /Za /W3 /Gm /GX /ZI /Od /I ".." /I "..\utils" /D "_DEBUG" /D 
>"HAVE_CONFIG_H" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /FR /FD /GZ /c
>+# ADD CPP /Ze /W3 /Gm /GX /ZI /Od /I ".." /I "..\utils" /D "_DEBUG" /D 
>"HAVE_CONFIG_H" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /FR /FD /GZ /c
> # SUBTRACT CPP /nologo /YX
> # ADD BASE RSC /l 0x409 /d "_DEBUG"
> # ADD RSC /l 0x409 /d "_DEBUG"
>
>
>
>
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]