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).
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.
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 & c:\mingw\lib).
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.
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.
I looked on this explanation of how to go about building libraries using Mingw64 on this link: enter link description here but I think TDM-GCC has taken care of a few of the problems this article is designed to resolve.
How do I set up my build environment correctly for the TDM-GCC 64 bit compiler so all my directories are found?
I noticed there are a number of include directories:
C:\mingw\x86_64-w64-mingw32\include
C:\mingw\lib\gcc\x86_64-w64-mingw32\5.1.0\include
PLUS my own directory created when I build my projects
- C:\mingw\include
What am I doing wrong here? Should I have used one of the first two directories as my include directory? I think this where I have baused things up.