tags:

views:

64

answers:

2

I am porting a C++ large project form Windows to Linux. My C++ files include header files that do not match those on the project directory due to the case sensitivity of file names in Linux file systems.

Any help?

I would prefer finding a flag for gcc (or ext4 file system) to manual editing or sed'ing my files.

Thanks for all!

+7  A: 

You're out of luck on your preference. Linux is case-sensitive, and always will be. Just identify the names that need to be changed, and sed away.

Adam Shiemke
Needless to mention that C++ itself is case sensitive and in the standard the header file are all specified in lower case. Though I see nothing definitive in the C99 about the case.
Dummy00001
+1  A: 

As far as I know the problem is with the file system. Unix file systems are case sensitive while windows ones are not. As far as I know there is no way round this. gcc certainly has no flags to help with this.

One point to bear in mind is directory separators. You can always safely use forward slashes "/" in #includes. This will work even for Windows.

doron