#796 Trailing slash in -I path is broken

OTHER
closed
nobody
gcc (462)
duplicate
Duplicate
2013-01-31
2005-07-01
No

With MinGW-4.1.0's gcc a trailing slash at the end of
-I include paths causes a problem. (was working in
MinGW-3.1.0)

How to repeat:

copy con: test.c
#include "inc.h"
^Z

md inc
copy con: inc\inc.h
#warning "inc.h was included!"
^Z

gcc -E -Iinc test.c
gcc -E -Iinc/ test.c

The second form (-Iinc/) fails with "inc.h: No such
file or directory"

Discussion

  • David Leonard

    David Leonard - 2005-07-01

    Logged In: YES
    user_id=10218

    Running gcc -v reveals:

    ignoring nonexistent directory "inc/"

    Same thing happens with inc\ But, inc/. and inc\. are both OK.

     
  • David Leonard

    David Leonard - 2005-07-01

    Logged In: YES
    user_id=10218

    Thank you for your interest in the MinGW project. This post is old and I am therefore closing it, if problems still exist
    please resubmit.

    The MinGW Project Administrators.

     
  • David Leonard

    David Leonard - 2005-07-01
    • status: open --> closed-duplicate
     
  • David Leonard

    David Leonard - 2005-07-01

    Logged In: YES
    user_id=10218

    same as bug 1114735. sorry.

     
  • Earnie Boyd

    Earnie Boyd - 2013-01-31
    • labels: --> gcc
    • status: closed-duplicate --> closed
    • resolution: --> duplicate
    • category: --> Duplicate
    • milestone: --> OTHER
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks