本文已参与「新人创作礼活动」,一起开启掘金创作之路。
1.为什么win 7 系统安装好了MarkdownPad2 ,打开总出现错误,这是什么原因,该如何解决啊?
2.“warning: templates not found C:\Program Files\Git\share\git-core\templates”
1.error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
3.git提示error setting certificate verify locations解决办法
4.error MSB8031: Building an MFC project for a non-Unicode character set is deprecated.
一、软件安装
1.为什么win 7 系统安装好了MarkdownPad2 ,打开总出现错误,这是什么原因,该如何解决啊?
win键+R然后输入regedit打开注册表,HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy将这个目录下的Enabled的值改为0
2.“warning: templates not found C:\Program Files\Git\share\git-core\templates”
搜索了一下templates目录,原来它在C:\Program Files\Git\mingw64\share\git-core\templates 这个位置。
原因找到了:原来SourceTree去了一个错误的位置找template文件,当然找不到了。我们把正确的位置告诉它就好了。
解决办法:
- 在SourceTree的设置页面找遍了也没找到设置template的地方。于是想办法直接修改配置文件。
- 由于SourceTree是调用了Git,于是我们去修改Git的配置文件。
- 在WIn10系统,Git的配置文件位于C:\Users<登录用户名>.gitconfig。使用文本编辑工具打开并加入如下几行:
[init]
templatedir=C:/Program Files/Git/mingw64/share/git-core/templates
二、配置过程
1.We got a strange error while pushing a large set of changes via git. “git push” command hangs after having such an error.
$ git push origin master
Counting objects: 6571, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (5583/5583), done.
error: RPC failed; result=56, HTTP code = 0
Writing objects: 100% (6570/6570), 11.73 MiB | 3.35 MiB/s, done.
Total 6570 (delta 1893), reused 0 (delta 0)
解决办法:
.gitconfig文件 - [http] postBuffer = 524288000
三、调试过程
1.error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
- Project -> Properties -> Configuration Properties -> Linker -> System
- changing SubSystem to Console.