Note that there are some explanatory texts on larger screens.

plurals
  1. POerror running a code with libstdc++6.dll
    primarykey
    data
    text
    <p>I was trying to compile and run the following code on my CODE::BLOCKS sftwr but It could never run properly due to some problems with a dll "libstdc++6.dll" </p> <p>I leave you the code listing and the error log in debug mode (f8)</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;allegro5/allegro.h&gt; int main(int argc, char **argv){ ALLEGRO_DISPLAY *display = NULL; if(!al_init()) { fprintf(stderr, "failed to initialize allegro!\n"); return -1; } display = al_create_display(640, 480); if(!display) { fprintf(stderr, "failed to create display!\n"); return -1; } al_clear_to_color(al_map_rgb(0,0,0)); al_flip_display(); al_rest(10.0); al_destroy_display(display); return 0; } </code></pre> <p>Debug output:</p> <pre><code>Building to ensure sources are up-to-date Selecting target: Debug Adding source dir: c:\telechar\Codeblocks\Mesprojets\MonProjet\ Adding source dir: c:\telechar\Codeblocks\Mesprojets\MonProjet\ Adding file: c:\telechar\Codeblocks\Mesprojets\MonProjet\bin\Debug\MonProjet.exe Changing directory to: c:/telechar/Codeblocks/Mesprojets/MonProjet/. Set variable: PATH=.;C:\Telechar\CodeBlocks\MinGW\bin;C:\Telechar\CodeBlocks\MinGW; C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;c:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Windows Live\Shared Starting debugger: C:\Telechar\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname -quiet -args c:/telechar/Codeblocks/Mesprojets/MonProjet/bin/Debug/MonProjet.exe done Registered new type: wxString Registered new type: STL String Registered new type: STL Vector Setting breakpoints Debugger name and version: GNU gdb (GDB) 7.5 Child process PID: 5536 Error while reading shared library symbols for c:\telechar\Codeblocks\Mesprojets\MonProjet\libstdc++-6.dll: ... Error while reading shared library symbols for c:\telechar\Codeblocks\Mesprojets\MonProjet\libstdc++-6.dll: Program received signal SIGSEGV, Segmentation fault. In al_destroy_display () (c:\telechar\Codeblocks\Mesprojets\MonProjet\allegro-5.0.10-md.dll) Continuing... Program received signal SIGSEGV, Segmentation fault. In al_destroy_display () (c:\telechar\Codeblocks\Mesprojets\MonProjet\allegro-5.0.10-md.dll) Continuing... [Inferior 1 (process 5536) exited with code 030000000005] Debugger finished with status 0 </code></pre> <p>the weird thing is that in release mode, it seems to work fine (a window appears for a while then closes itself, in debug mode, the screen displays but it has a blue color instead, at the end, it does crashes)</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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