LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   gcc case insensitive (https://www.linuxquestions.org/questions/programming-9/gcc-case-insensitive-819321/)

nav_linux 07-11-2010 10:11 PM

gcc case insensitive
 
Hi All
I am working with a third party that use windows to compile. When we port that code I am running into a lot of case issues where the includes are not case sensitive.

Is there any option in GCC to make it case insensitive. I know its a long shot, as I have done reading and does not seem so :(

wje_lq 07-11-2010 11:29 PM

I think you might be stuck at this point.

To unstick, write a couple of Perl scripts.
  1. One goes through all the include files in your code and renames them so their names are all lower case.
  2. Another goes through all your code (including the include files), finds the #include statements, and translates all the filenames from upper to lower case.


All times are GMT -5. The time now is 07:03 PM.