When compiling a C + + program with g++
The following system prompts appear:
The solution is as follows:
1. Download Zlib1.dll:
Http://www.pc6.com/softview/SoftView_81060.html
2. Unzip and place in the system directory
32-bit system: put to C:\Windows\System32\ (System directory here)
64-bit system: put to C:\Windows\SysWOW64\
3. Then win+r, enter CMD, compile C + +, compile through, as
In Sublime Text3, create a new compilation configuration file Myc++.sublime-bulid, copy and paste the following
{ "shell_cmd": "g++ \" ${file}\ "-o \" ${file_path}/${file_base_name}\ "", "File_regex": "^ (.. [^:]*]:([0-9]+):? ([0-9]+)?:? (. *) $ ", " Working_dir ":" ${file_path} ", " selector ":" Source.c, source.c++ ", //" encoding ":" cp936 ", "Variants": [ { "name": "Run", "Shell_cmd": "g++ \" ${file}\ "-o \" ${file_path}/${file_base_name }\ "&& \" ${file_path}/${file_base_name}\ "" } ]}
Select Myc++ in the compilation options
Final Test, Ctrl+shift+b compiled by
Sublime Text3 compiling A/C + + system tips missing Zlib1.dll solution