summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
author <shinichiro.hamaji@gmail.com>2010-05-28 03:21:44 +0000
committer <shinichiro.hamaji@gmail.com>2010-05-28 03:21:44 +0000
commiteb80cb0af512da79c99bb89d3c6bc93b634d62ab (patch)
tree8c8f4cb122278e60dc7962f8ecdabf6e177432d6 /doc
parent65e631e03806b1ec2fe18b7bbdca55f8f26df91f (diff)
downloadglog-eb80cb0af512da79c99bb89d3c6bc93b634d62ab.tar.gz
glog-eb80cb0af512da79c99bb89d3c6bc93b634d62ab.tar.bz2
glog-eb80cb0af512da79c99bb89d3c6bc93b634d62ab.zip
Add information about the conflict with windows.h into our document.
http://code.google.com/p/google-glog/issues/detail?id=33 git-svn-id: https://google-glog.googlecode.com/svn/trunk@79 eb4d4688-79bd-11dd-afb4-1d65580434c0
Diffstat (limited to 'doc')
-rw-r--r--doc/glog.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/glog.html b/doc/glog.html
index 9fe2e1f..4dce0dd 100644
--- a/doc/glog.html
+++ b/doc/glog.html
@@ -524,6 +524,22 @@ setting <code>GOOGLE_STRIP_LOG</code> to 1 or greater removes
all log messages associated with <code>VLOG</code>s as well as
<code>INFO</code> log statements.
+<h3><A NAME=windows>Notes for Windows users</A></h3>
+
+<p>Google glog defines a severity level <code>ERROR</code>, which is
+also defined in <code>windows.h</code>
+There are two known workarounds to avoid this conflict:
+
+<ul>
+ <li>#define <code>WIN32_LEAN_AND_MEAN</code> or <code>NOGDI</code>
+ <strong>before</strong> you #include <code>windows.h</code> .
+ <li>#undef <code>ERROR</code> <strong>after</strong> you #include
+ <code>windows.h</code> .
+</ul>
+
+<p>See <a href="http://code.google.com/p/google-glog/issues/detail?id=33">
+this issue</a> for more detail.
+
<hr>
<address>
Shinichiro Hamaji<br>