#573 including directories VS including files

closed-fixed
Danny Smith
gcc (462)
2007-09-23
2004-05-17
Bernd Fuhrmann
No

I just updated my existing MingW installation to GCC
3.4.0 (Gcc package and G++ package). Then I tried to
compile one of my programs and received a strange error:

This is the output of the compilation process:
-----------------------------------------
g++.exe "d:\Data\Coding\cpp\Stringtest2.cc" -o
"d:\Data\Coding\cpp\Stringtest2.exe" -lvfw32
--save-temps -fexceptions -O1 -g3
-I"C:\Programme\Coding\Mingw\include\c++"
-I"C:\Programme\Coding\Mingw\include\c++\mingw32"
-I"C:\Programme\Coding\Mingw\include\c++\backward"
-I"C:\Programme\Coding\Mingw\include"
-I"d:\Data\Coding\cpp\INCLUDE\DepCompiler\GCC\i386\AllSystems"
-I"d:\Data\Coding\cpp\INCLUDE\DepCompiler\GCC\i386\mingw32"
-I"d:\Data\Coding\cpp\INCLUDE\DepCompiler\GCC\AllProcessor"
-I"d:\Data\Coding\cpp\INCLUDE\DepOS\win32"
-I"d:\Data\Coding\cpp\INCLUDE\DepSystem\I386"
-I"d:\Data\Coding\cpp\INCLUDE\Independant"
-I"d:\Data\Coding\cpp\Projects\include"
-L"C:\Programme\Coding\Mingw\lib"-g3
In file included from
C:\Programme\Coding\Mingw\bin/../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/bits/locale_classes.h:47,
from
C:\Programme\Coding\Mingw\bin/../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/bits/ios_base.h:47,
from
C:\Programme\Coding\Mingw\bin/../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/ios:49,
from
C:\Programme\Coding\Mingw\bin/../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/ostream:45,
from
C:\Programme\Coding\Mingw\bin/../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/iostream:45,
from d:\Data\Coding\cpp\Stringtest2.cc:8:
C:\Programme\Coding\Mingw\bin/../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/string:48:37:
d:\Data\Coding\cpp\INCLUDE\DepSystem\I386/memory:
Permission denied
-----------------------------------------

Some of the dirs in d:\Data\Coding\cpp\INCLUDE contain
a folder named "Memory". I think, however, that this
shouldn't be a problem (it wasn't one in 3.3.0). I'm
not sure if this is a MingW bug or a bug in GCC, but
hopefully someone will know...

And here some infos about used versions:
OS: Windows XP Sp1
G++/GCC --version: 3.4.0

Discussion

  • Danny Smith
    Danny Smith
    2004-07-26

    Logged In: YES
    user_id=11494

    I have submitted a patch for this to gcc, but it has not been
    reviewed. The fix is in mingw release og gcc-3.4.1

     
  • Danny Smith
    Danny Smith
    2005-01-31

    • status: open --> open-remind
     
  • Danny Smith
    Danny Smith
    2007-09-23

    • status: open-remind --> closed-fixed
     
  • Danny Smith
    Danny Smith
    2007-09-23

    Logged In: YES
    user_id=11494
    Originator: NO

    Fixed on GCC trunk