Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It could be the COMPILER acting funny, or it could be something about the ENVIRONMENT.</p> <p>COMPILER:</p> <p>If it's just some weird glitch with the compiler that causes it to crash (which would probably keep Code::Blocks from opening the executable and make it give you that message), then I recommend changing...</p> <pre><code>int getWinnings (int a,int b) { return a + b; }; </code></pre> <p>...to <code>#define getWinnings(a,b) (a + b)</code></p> <p>ENVIRONMENT:</p> <p>[I'm assuming you're using Windows.]</p> <p>I get that notification sometimes, under two conditions.</p> <p>The first is that I am accidentally hitting Build &amp; Run on a header file that I was fixing, instead of on the actual program that I was using the test the header. In this case, if you gave the source file the wrong extension just close it, change the extension to ".c" or ".cpp" instead of ".h", and then reopen it.</p> <p>The second is that Code::Blocks looked for the executable before Windows opened it to read access after the compiler closed the file after writing to it. In this case, after building it, if it gives you the message, just hit "No" and then hit the run button (not the Build &amp; Run button).</p> <p>If neither of these is the problem, you may have a problem with file access, such as that you are not on an Administrator-level account or that Code::Blocks hasn't been granted Administrator-level permissions. Try settings Code::Blocks to open with Administrator-level permissions (on Windows 7 that means you'll have to click the pop-up thing to allow it every time you open it), or if you can't do that then perhaps changing the directory you're compiling in.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload