`gcc -print-prog-name=cc1plus` -v This command asks gcc which C++ preprocessor it is using, and then asks that preprocessor where it looks for includes. You will get a reliable answer for your specific setup. Likewise, for the C preprocessor: `gcc -p
perl有句格言:There is more than one way to do it.意思就是任何问题用perl都有好几种解决方法.以前处理文件路径的时候都是自己写正则表达式,而用perl的模块来解决则更加迅速.准确. 1). File::Basename 有3个方法:fileparse.basename.dirname. 用法: ($name,$path,$suffix) = fileparse($fullname,@suffixlist); $basenam