LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-11-2010, 10:11 PM   #1
nav_linux
LQ Newbie
 
Registered: Jun 2007
Posts: 1

Rep: Reputation: 0
Question 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
 
Old 07-11-2010, 11:29 PM   #2
wje_lq
Member
 
Registered: Sep 2007
Location: Mariposa
Distribution: FreeBSD,Debian wheezy
Posts: 811

Rep: Reputation: 179Reputation: 179
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking of Case insensitive gregarion Programming 5 01-19-2010 11:09 PM
Apache Case Insensitive RiceAnis Red Hat 4 12-03-2009 08:45 AM
Case insensitive URL's subhashiniganeshan Linux - Server 1 10-08-2009 12:35 AM
Copying files from case-sensitive Linux to case-insensitive Windows via CIFS? SlowCoder Linux - General 4 05-07-2008 07:03 PM
Case-insensitive CVS? sundialsvcs Programming 2 06-25-2006 10:01 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration