Results 1 to 6 of 6

Thread: case insensitive compiling with gcc?

  1. #1
    Join Date
    May 2009
    Beans
    15

    case insensitive compiling with gcc?

    Hello all,
    I have a bunch of files where the headers included do not match the case of the header file names. While compiling gcc cannot find these files because of the case mismatch. I cannot change the original files so what I do is to cp these files to the correct case before and remove them after compiling using a make file.

    Is there any compiler option that enables case insensitive compiling with gcc?

    Regards
    V.Gokul

  2. #2
    Join Date
    Dec 2006
    Location
    Australia
    Beans
    1,097
    Distro
    Xubuntu 15.10 Wily Werewolf

    Re: case insensitive compiling with gcc?

    No, there is no case-insensitive compilation option for gcc.

  3. #3
    Join Date
    May 2008
    Location
    UK
    Beans
    1,450
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: case insensitive compiling with gcc?

    Why can't you change the file names permanently ?
    Tony - Happy to try to help.
    Unless otherwise stated - all code posted by me is untested. Remember to Mark the Thread as Solved.
    Ubuntu user number # 24044 Projects : TimeWarp - on the fly Backups

  4. #4
    Join Date
    Apr 2007
    Location
    (X,Y,Z) = (0,0,0)
    Beans
    3,715

    Re: case insensitive compiling with gcc?

    Quote Originally Posted by Tony Flury View Post
    Why can't you change the file names permanently ?
    Maybe permission issues? If so, ask the owner of those files to allow you modify those names.

  5. #5
    Join Date
    May 2009
    Beans
    15

    Re: case insensitive compiling with gcc?

    Quote Originally Posted by nvteighen View Post
    Maybe permission issues? If so, ask the owner of those files to allow you modify those names.
    That is correct. I am not the owner of the files.

    Just wanted to be sure that I am not missing any obvious solution.

    Thank you.

  6. #6
    Join Date
    May 2006
    Beans
    1,787

    Re: case insensitive compiling with gcc?

    Quote Originally Posted by vgokul View Post
    That is correct. I am not the owner of the files.

    Just wanted to be sure that I am not missing any obvious solution.

    Thank you.
    An alternative to copying may be to make symbolic links.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •