# MinGW Compiling Issue

This is a discussion on MinGW Compiling Issue within the C++ Programming forums, part of the General Programming Boards category; I'm using MinGW 3.4.5 on three different machines. One runs windows xp, another windows vista, and the last runs windows ...

1. ## MinGW Compiling Issue

I'm using MinGW 3.4.5 on three different machines. One runs windows xp, another windows vista, and the last runs windows 7. I can compile perfectly fine on the windows 7 and vista machines, but for some reason I can't compile on the windows xp machine. Only the simplest example programs work. Here is the root of the problem.

src/world.h:17:18: vector: No such file or directory
src/world.h:18:19: fstream: No such file or directory

I get this for many other include files as well. I installed mingw with all the same default parameters as I did on vista and 7.

Any help would be greatly appreciated. I've been wrestling with this for awhile now.

2. Well . . . it seems, at least at first, that mingw's include path isn't set correctly . . .

What have you tried to get mingw working on the Windows XP machine? What happens when you manually invoke gcc with -I<include-path> -L<lib-path>?

EDIT: the first one is an uppercase 'i', in case you were wondering . . .

3. I added those options like you suggested and I got the same results.

I was hunting around a bit on the mingw wiki and I found out how to change the "specs" file. I included the following options in two ways, first through my make file, and when that didn't work, through the specs file.

Options I included
-I "C:\MinGW\include\c++\3.4.5" -I "C:\MinGW\include" -L "C:\MinGW\lib"

Here is the list of include directories searched by mingw currently.

Code:
```Thread model: win32
gcc version 3.4.5 (mingw-vista special r3)
cc1plus -quiet -v -iprefix ../lib/gcc/mingw32/3.4.5/ src/main.cpp -quiet -dumpb
ase main.cpp -auxbase-strip obj\main.o -version -o C:\DOCUME~1\ssieg\LOCALS~1\Te
mp/ccKRQAik.s
ignoring nonexistent directory "../lib/gcc/mingw32/3.4.5/../../../../include/c++
/3.4.5"
ignoring nonexistent directory "../lib/gcc/mingw32/3.4.5/../../../../include/c++
/3.4.5/mingw32"
ignoring nonexistent directory "../lib/gcc/mingw32/3.4.5/../../../../include/c++
/3.4.5/backward"
ignoring nonexistent directory "../lib/gcc/mingw32/3.4.5/../../../../include"
ignoring nonexistent directory "../lib/gcc/mingw32/3.4.5/include"
ignoring nonexistent directory "../lib/gcc/mingw32/3.4.5/../../../../mingw32/inc
lude"
ignoring nonexistent directory "/mingw/include/c++/3.4.5"
ignoring nonexistent directory "/mingw/include/c++/3.4.5/mingw32"
ignoring nonexistent directory "/mingw/include/c++/3.4.5/backward"
ignoring nonexistent directory "/mingw/include"
ignoring nonexistent directory "/mingw/include"
ignoring nonexistent directory "/mingw/lib/gcc/mingw32/3.4.5/include"
ignoring nonexistent directory "/mingw/mingw32/include"
ignoring nonexistent directory "/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
C:/MinGW/include
End of search list.```
Now, it seems as though I've got only relative paths. I've got no clue what is going on here. All of the proper directories exist and they have the include files I need, but g++ and gcc cant' seem to find them on this machine.

Any suggestions?

4. Uhh . . . what files are in the C:\MinGW\include directory? Perhaps try a legacy or development version of MinGW?