Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: libstdc++-6.dll error  (Read 4873 times)

0 Members and 1 Guest are viewing this topic.

SpectreNectar

  • Newbie
  • *
  • Posts: 39
    • View Profile
libstdc++-6.dll error
« on: July 07, 2015, 01:31:45 pm »
When running my project a lot of these get thrown in my face by the debugger:

Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:

I googled and found a suggestion to recompile SFML 2.3 with the same compiler that is used by Code::Blocks.  I have two versions of MinGW - one in the Code::Blocks folder and one in the C: although I'm close to certain that the one in the Code::Blocks folder was used when I compiled SFML.

I guess that renders the suggestion useless. Right? So how do I get rid of the error?

Sorry if I'm being a tad newbish here :)

kitteh-warrior

  • Guest
Re: libstdc++-6.dll error
« Reply #1 on: July 07, 2015, 01:39:06 pm »
I have two versions of MinGW - one in the Code::Blocks folder and one in the C: although I'm close to certain that the one in the Code::Blocks folder was used when I compiled SFML.

If you downloaded the procompiled binaries, it is compiled using the default one with Code::Blocks. Due to your path environment variable, the end executable is looking for the file "libstdc++-6.dll", then finding it in another location. I think this is what is happening here. Please provide more information about which compiler is which version, if you built SFML for source, etc.

SpectreNectar

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: libstdc++-6.dll error
« Reply #2 on: July 07, 2015, 01:53:03 pm »
I did build from source .
The source code found under http://www.sfml-dev.org/download/sfml/2.3/

The MinGW version found in 'C:\MinGW not used' appears to be 4.8.1
The MinGW version found in 'C:\Program Files (x86)\CodeBlocks\MinGW' is 4.7.1

I also have Visual studio (VS Express) installed if that makes a difference.

Here's the entire debug log:
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: E:\Ghost\C++\Ghost-Hunters---A-Bearded-Adventure\
Adding source dir: E:\Ghost\C++\Ghost-Hunters---A-Bearded-Adventure\
Adding file: E:\Ghost\C++\Ghost-Hunters---A-Bearded-Adventure\bin\Debug\Ghost.exe
Changing directory to: E:/Ghost/C++/Ghost-Hunters---A-Bearded-Adventure/.
Set variable: PATH=.;C:\sfml\SFML-2.3\lib;C:\Program Files (x86)\CodeBlocks\MinGW\bin;C:\Program Files (x86)\CodeBlocks\MinGW;C:\ProgramData\Oracle\Java\javapath;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Common Files\Adobe\AGL;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\HaxeToolkit\haxe;C:\HaxeToolkit\neko;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Dr. Memory\bin;C:\PHP\bin\php\php5.5.12;C:\ProgramData\ComposerSetup\bin;C:\GTK\bin;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\Program Files (x86)\Skype\Phone;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0;C:\Program Files\Microsoft SQL Server\120\Tools\Binn
Starting debugger: C:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname  -quiet  -args E:/Ghost/C++/Ghost-Hunters---A-Bearded-Adventure/bin/Debug/Ghost.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: 9172
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
Error while reading shared library symbols for C:\Program Files (x86)\CodeBlocks\MinGW\bin\libstdc++-6.dll:
[Inferior 1 (process 9172) exited normally]
Debugger finished with status 0
 

kitteh-warrior

  • Guest
Re: libstdc++-6.dll error
« Reply #3 on: July 07, 2015, 02:07:46 pm »
When running CMake for SFML, which compiler did that use?

EDIT: and which compiler did SFML actually get compiled with? This depends on your system variable called "Path".
« Last Edit: July 07, 2015, 02:17:24 pm by kitteh-warrior »

SpectreNectar

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: libstdc++-6.dll error
« Reply #4 on: July 07, 2015, 02:18:29 pm »
I use Cmake-gui and I didn't change the compiler from the default. The default compiler/settings when I run cmake-gui now is:

Code::Blocks Mingw makefiles
Use default native compilers
(see attachment)

EDIT
My path variable:
C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\CodeBlocks\MinGW\bin;C:\Program Files (x86)\Common Files\Adobe\AGL;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;%HAXEPATH%;%NEKO_INSTPATH%;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Dr. Memory\bin;C:\PHP\bin\php\php5.5.12;C:\ProgramData\ComposerSetup\bin;C:\GTK\bin;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\
« Last Edit: July 07, 2015, 02:20:28 pm by SpectreNectar »

kitteh-warrior

  • Guest
Re: libstdc++-6.dll error
« Reply #5 on: July 07, 2015, 02:24:55 pm »
Why do you have a MinGW installation on the root of C:, but no references to it via the path variable? (I suppose that makes sense with multiple installations, so they don't clash with each other)
What happens if you remove that compiler from your system, and recompile everything?
« Last Edit: July 07, 2015, 02:29:36 pm by kitteh-warrior »

SpectreNectar

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: libstdc++-6.dll error
« Reply #6 on: July 07, 2015, 03:01:02 pm »
Its a lengthy process. I'll have to do it later today when I have better time.

Thanks a bunch so far