When double-clicking the exe file generated on Codeblocks, an error (0xc000007b) that cannot run sometimes occurs

Straight to the point, this is most likely due to the inclusion of iostream in the header file.
Let's take the simplest helloworld program as an example. When the header file uses stdio.h (test1.cpp), the program can run on codeblocks, and there is no problem with double-clicking the generated exe file.


But if you change stdio.h to iostream(test2.cpp), although it can run normally on codeblocks, the exe file cannot be opened


The reason for this error is that the dll dependencies cannot be found, so I used the dumpbin tool of VS to view the dependencies of the exe file.


It can be seen that test2 has one more dependency called libstdc++-6.dll than test1, and further solutions can be referred to.
(24 messages) Small problem about missing stdc++-6.dll in CodeBlocks_AllZone-CSDN Blog
Since the school homework required uploading executable exe files, when I encountered this error at the beginning, I always thought that there was a problem when I introduced the third-party library dll (the computer did not directly tell me which dll failed to find), and searched a lot of information Still unresolved, after days of trying I finally figured out that the real problem was with the iostream.
Finally, if you are a student who wants to use codeblocks to upload large assignments like me, I recommend that you quote stdio.h and give up iostream, which can save a lot of trouble in configuration.
If it is changed to stdio.h and the error 0xc000007b still occurs, then go to see if the dll of the third-party library has not been put in.
Running a period of Rocketmq Broker, suddenly found that the exit is found, and the reason is that the basics are caused by insufficient disk space. Solution: 1. First change the startup script accord...
Modify the host name Reason: Modified the host's Ubuntu device name, there is no HOSTS file, causing Linux to resolve to your host address Solution: It is to configure the HOSTS file to ...
1. Reasons why Google Chrome cannot be opened Chrome’s default search engine, google, is a foreign website, so website information cannot be displayed normally due to network problems 2. ...
Canal is unable to run in Linux due to memory reasons. Encounter problems: InstallcanaAfter L, atcanal/binStartup.sh is not successful or generated in the directorycanal/logsGenerate in the foldercana...
For the novice to learn c language / c ++ is, codeblocks can not run is not very crash before my classmates because to curriculum design, so you want to install codebooks, but can not run after instal...
Python packaged EXE is unable to run in Win7 Originally, PY3.8 wrote a program in Win10, and everyone said that Win7 can't run, and finally use virtual machines to pack it in Win7 + PY3.7 environment,...
In our learning process, it is impossible for us to buy a domain name to learn. Of course, if you have money, I didn't say it. How to implement domain name resolution if you don't buy it? You can modi...
Problem Description When you want to request a URL to download via Ajax, you will find that the browser will not report any error messages, and there is no corresponding feedback for this request. Rel...
PHP uses the super global variable array $_FILES to record file upload related information. 1.file_uploads=on/off Whether to allow files to be uploaded via http 2.max_execution_time=30 Allow the maxim...
When doing reading and writing CSV exercises, I found out that FieldNames, Print came out, and found that the program read the table content, more \ ufeff characters, research, found that the encoding...