开发者

Porting C++ code from Windows to Linux - Header files case sensitivity issue

开发者 https://www.devze.com 2023-01-05 07:28 出处:网络
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 syste

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) t开发者_运维问答o manual editing or sed'ing my files.

Thanks for all!


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号