# 'Rectangle' : ambiguous symbol

**URL:** <https://forum.juce.com/t/rectangle-ambiguous-symbol/6891>\
**Category:** Windows\
**Created:** [May 19, 2011, 8:56pm UTC](https://forum.juce.com/t/rectangle-ambiguous-symbol/6891 "2011-05-19T20:56:05Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![yfede](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/yfede/32/506_2.png) [@yfede](https://forum.juce.com/u/yfede)\
**Post date:** [March 17, 2017, 4:08pm UTC](https://forum.juce.com/t/rectangle-ambiguous-symbol/6891/5 "2017-03-17T16:08:52Z")

</div>

> [@jules](#):
>
> You should just use an explicit namespace, or maybe don’t include the windows headers in files that don’t need them, so that there’s no clash.

I’m having exactly this problem while trying to arrange some existing sources in “juce module” fashion.

One of these .cpp files needs windows.h so I put an `#include` for it into the main “juce\_module.cpp” file.

This causes all the other .cpp files that use Rectangles to complain like shown above.

What is the preferred way to cope with this?

---

_[View the full topic](https://forum.juce.com/t/rectangle-ambiguous-symbol/6891)._
