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. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    18

    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. #2
    Registered User
    Join Date
    Dec 2009
    Location
    /dev/pts/0
    Posts
    29
    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. #3
    Registered User
    Join Date
    Dec 2009
    Posts
    18
    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. #4
    Registered User
    Join Date
    Dec 2009
    Location
    /dev/pts/0
    Posts
    29
    Uhh . . . what files are in the C:\MinGW\include directory? Perhaps try a legacy or development version of MinGW?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help compiling example code (MinGW and DirectX9)
    By scwizard in forum Game Programming
    Replies: 10
    Last Post: 07-25-2008, 11:43 AM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 03:39 PM
  3. SciTe compiling issue C++
    By tio1225 in forum Tech Board
    Replies: 1
    Last Post: 09-18-2005, 01:56 AM
  4. compiling mingw to enable timeSetEvent
    By underthesun in forum Windows Programming
    Replies: 2
    Last Post: 02-02-2005, 06:00 PM
  5. compiling and executing issue with lcc win32
    By GanglyLamb in forum C Programming
    Replies: 10
    Last Post: 12-22-2004, 02:24 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21