光说有毛用


程序猿的小本本

last update:

not found or not built by the last incremental link; performing full link 2015年10月25日 19:53 VS的一个编译警告,不算错误。原因和解决办法如下: 用visualstudio创建一个Win32 Console Application,编译后生成两个Debug目录,一个在项目所属的Solution下,这个Debug中会生成.exe等类型程序结果文件。另外 的一个在Project的目录中,这个Debug中包含pdb等文件,但是没有生成.exe等程序结果文件。 Condition: 当再次重新编译项目时,出现如题的问题。 Cause: 引起这个错误的根源在于Microsoft的VS的两个配置项配置冲突造成的: 配置1:Configuration Properties->General->Output Directory默认配置是$(SolutionDir)$(ConfigurationName) 配置2:Configuration Properties->Linker->General->Output Directory默认配置是$(OutDir)/$(ProjectName).exe 上述的两项配置是冲突的。所以在你重新编译的时候这个错误就出现了 Solution: 在project的property配置窗口中:Configuration Properties->General:把Output Directory从$(SolutionDir)$(ConfigurationName)改 成$(ProjectDir)$(ConfigurationName)

C语言通配符匹配 工作中经常会遇到通配符,windows控制台程序,linux shell,还有web服务器配置路径,Makefile中。 我来分享两个C语言通配符匹配程序和测试程序;我是抱着拿来主义的想法,年纪大了越越懒得动脑子了。 通配符程序中用到的是*和? *表示任意多个任意字符 ?表示单个任意字符 关于通配符的定义引用百度百科的一段话 通配符是一种特殊语句,主要有星号(*)和问号(?),用来模糊搜索文件。当查找文件夹时,可以使用它来代替一个或多个真正字符;当不知道真正字符或者懒得输入完整名字时,常常使用通配符代替一个或多个真正的字符。 实际上用”*Not?paOd”可以对应Notpad\MyNotpad【*可以代表任何文字】;Notpad\Notepad【?仅代表单个字】;Notepad\Notepod【ao代表a与o里二选一】,其余以此类推。 第一个程序是商业友好的license,请放心使用! License This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below. A list of licenses authors might use can be found here 第二个没有明确标明。