刚 刚将一个工程从vc6.0移植到linux 下的kdevelop,发现了一些问题:许多文本内容发生了变化。不可想象,按照这变化了的文本去进行调试会遇到多少不可想象的问题。
其实根本原因是dos格式到unix的转换问题。因此,在进行程序移植时一定要对程序文件进行转换,避免因内容改变而带来的一些不必要的烦恼。
#find . -type f -and -not -name "*.cpp" -and -not -name "*.h" -and -not -name "*.png" -and -not -name "*.bmp" | sed "s/.*//"//0/"/" | xargs dos2unix
vc6.0 to linux
space.lenevcron.com
其实根本原因是dos格式到unix的转换问题。因此,在进行程序移植时一定要对程序文件进行转换,避免因内容改变而带来的一些不必要的烦恼。
#find . -type f -and -not -name "*.cpp" -and -not -name "*.h" -and -not -name "*.png" -and -not -name "*.bmp" | sed "s/.*//"//0/"/" | xargs dos2unix
vc6.0 to linux
space.lenevcron.com
本文分享了从VC6.0移植程序到Linux环境下KDevelop遇到的问题及解决办法,重点介绍了如何处理由文本格式差异导致的内容变化,确保移植后的程序能够正常运行。
363

被折叠的 条评论
为什么被折叠?



