CodeBlock opens 2 console windows when executing a prog

前端 未结 2 876
谎友^
谎友^ 2021-01-15 03:43

I have recently installed Code Blocks and I\'m using it for C++ programming.

I have written a basic Hello World program and when i run the program, 2 console window

相关标签:
2条回答
  • 2021-01-15 04:12

    This problem can be caused by an antivirus application like avast that executes unknown applications for a short time in a sandbox to determine if the program appears to be a virus. Disabling this feature altogether or excluding your visual studio project folders are good way around this issue.

    0 讨论(0)
  • 2021-01-15 04:21

    If you're running Avast, go to :

    • Settings -> Active Protection -> File System Shield [settings icon] -> Exclusions.
    • Press [Add]
    • and enter the following: " * /folder/* " where folder is the name of your project folder (no spaces).

    Should run fine now.

    0 讨论(0)
提交回复
热议问题