# I am getting a new Warning (compiling winXP)

**URL:** https://community.easyrpg.org/t/i-am-getting-a-new-warning-compiling-winxp/70
**Category:** Player
**Created:** [January 31, 2011, 1:09am UTC](https://community.easyrpg.org/t/i-am-getting-a-new-warning-compiling-winxp/70 "2011-01-31T01:09:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![angelus\_ira](https://community.easyrpg.org/letter_avatar_proxy/v4/letter/a/b4bc9f/32.png) [@angelus\_ira](https://community.easyrpg.org/u/angelus_ira)
#### Post date: [January 31, 2011, 1:09am UTC](https://community.easyrpg.org/t/i-am-getting-a-new-warning-compiling-winxp/70/1 "2011-01-31T01:09:05Z")

</div>

Hi, first you are programming at the speed of light compared to a few months ago. Nice XD  
Now the bug:  
After the revision 1230, i am getting this warning when i compile on windows xp (codelite)

`../../include/reader.h
   42:0,
../../include/reader_util.h
   26:0: warning: "NOMINMAX" redefined
e:\c\mingw\bin\../lib/gcc/mingw32/4.5.0/include/c++/mingw32/bits/os_defines.h
   46:0: note: this is the location of the previous definition
`

I do not know if is because i use codelite on windows (i read on other post, better use VS) but the change of the file is on the revision 1230 on the file reader\_util.h with the addition of the next to lines:

`#define WIN32_LEAN_AND_MEAN
#define NOMINMAX`

I DO NOT KNOW IF THIS IS A BUG, IT IS JUST A QUESTION ABOUT THIS WARNING

---

<div class="post-metadata">

### Author: ![Ghabry](https://community.easyrpg.org/user_avatar/community.easyrpg.org/ghabry/32/121_2.png) [@Ghabry](https://community.easyrpg.org/u/Ghabry)
#### Post date: [January 31, 2011, 2:25am UTC](https://community.easyrpg.org/t/i-am-getting-a-new-warning-compiling-winxp/70/2 "2011-01-31T02:25:12Z")

</div>

Hi, the warning is not critical and can be ignored. It could be solved by adding a guard (#ifndef NOMINMAX #define NOMINMAX #endif) around it.

Windows.h has the problem that it includes lots of other windows-related files and they conflict with our functions. e.g. Skip in the Reader; and Min, Max in the util\_macro.h. The NOMINMAX macro is to disable Min and Max from windows.h.

---

<div class="post-metadata">

### Author: ![angelus\_ira](https://community.easyrpg.org/letter_avatar_proxy/v4/letter/a/b4bc9f/32.png) [@angelus\_ira](https://community.easyrpg.org/u/angelus_ira)
#### Post date: [January 31, 2011, 3:23am UTC](https://community.easyrpg.org/t/i-am-getting-a-new-warning-compiling-winxp/70/3 "2011-01-31T03:23:24Z")

</div>

thanks for the reply. I just posted because the same warning keep showing and i did not know if these could be a problem.  
If some mod want to delete this post feel free.
