TDM-GCC c++ compiler (Setting up)
<p>I'm now using TDM-GCC 64 bit compiler and have originally built all my libraries (dependencies for other libraries) and projects using this compiler to create 64 bit binaries (which is what I want).</p>

<p>Recently I have run into some build issues where I was building a Fast Light Tool Kit (gui toolkit) project which included math.h.  This is where I ran into my first build issue and made me realize that I've probably set up my build environment incorrectly.  Everything was built using MSYS.</p>

<p>My root directory is C:\mingw so when I configured each project I used the commands:
./configure --prefix=c:\mingw and the appropriate c:\mingw include and lib directories were created (c:\mingw\include &amp; c:\mingw\lib).</p>

<p>FLTK contains a math.h file which directs the compiler to search for the appropriate math.h c++ file in the relevant include directory but the issue is it is telling me it can't find it (math.h: no such file or director etc). I'm using Windows 7 64 bit.  </p>

<p>I think this is because the way I have set up my build environment, I have maybe not accounted for the fact that TDM-GCC can compile both 32 and 64 bit binaries so this somehow has affected the compilers interpretation of where my c++ math.h file is.  </p>

<p>I looked on this explanation of how to go about building libraries using Mingw64 on this link:  <a href="http://www.gaia-gis.it/spatialite-3.0.0-BETA/mingw64_how_to.html" rel="nofollow">enter link description here</a> but I think TDM-GCC has taken care of a few of the problems this article is designed to resolve. </p>

<p>How do I set up my build environment correctly for the TDM-GCC 64 bit compiler so all my directories are found?  </p>

<p>I noticed there are a number of include directories: </p>

<ol>
<li><p><strong>C:\mingw\x86_64-w64-mingw32\include</strong></p></li>
<li><p><strong>C:\mingw\lib\gcc\x86_64-w64-mingw32\5.1.0\include</strong></p></li>
</ol>

<p>PLUS my own directory created when I build my projects</p>

<ol>
<li><strong>C:\mingw\include</strong></li>
</ol>

<p><strong>What am I doing wrong here?  Should I have used one of the first two directories as my include directory?</strong>  I think this where I have baused things up.</p>