Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

libstdc++-6.dll not found

I have been working on a project (a game to be specific) and I feel that I should start over with different libraries. So when doing this I reinstalled Code::Blocks and setup my new libraries and includes.

But as of now Im having a problem starting u[ my new project to test if all of the includes work. This problem is: libstdc++-6.dll was not found. At first i wondered if I could just find this file online, but its nowhere to be found(or at least the many places I have searched...) Soon after, I tried loading up my old project, and the same problem happened again(wierd... ._.) I was thinking its maybe my compiler, so I used my older compiler and it did the same thing! At this moment I held the problem off for tomorrow(which is today)

So my question is: If anyone else had this problem, how would you solve it?

Im using Code::Blocks with MinGW as the compiler on Windows Vista 32 bit.

*****EDIT*****

Here are the Build options in my project. Note that these are the settings in the Project, not the global compiler:

In (project name)->Compiler settings->Otehr options:

(I use // to seperate the commands)

-mthreads// -fmessage-length=0// -fexceptions// -fident// 

In (project name)->Compiler settings->#define:

WIN32// _WINDOWS// 

In (project name)->Linker settings->Other linker options:

-static-libstdc++// -static-libgcc// -Wl,--enable-auto-image-base// -Wl,--add-stdcall-alias// -Wl,--enable-auto-import// 

In linker->link libraries i have various links to files with a .a extension, these files include Bullet PHysics, Ogre3D, and SFML

In the search directories i have links to the MinGW/bin, and the MinGW/lib directories, along with other links to different libraries.

My Compiler is MinGW, a GNU GCC compiler for windows 32 bit. and the IDE is Codeblocks. Also note that in Debug and Release settings on the project, there is nothing.

Most of these setings are also pieces that i got from the Ogre3D Application setup tutorial if that is of any help.

like image 611
Molmasepic Avatar asked Jun 19 '11 17:06

Molmasepic


People also ask

Is Libstdc ++ part of GCC?

Libstdc++ is part of the GCC sources. You should first unpack the GCC tarball and change to the gcc-9.2.

Where is Glibcxx?

The name GLIBCXX is the prefix on the names of the version symbols within the library. Usually it would be more closely related to the actual name of the library (without the "lib" prefix), but in this case, the plus signs are a problem, and so they are replaced with X characters.


1 Answers

If you are using MingW to compile C++ code on Windows, you may like to add the options -static-libgcc and -static-libstdc++ to link the C and C++ standard libraries statically and thus remove the need to carry around any separate copies of those. Version management of libraries is a pain in Windows, so I've found this approach the quickest and cleanest solution to creating Windows binaries.

like image 174
Kerrek SB Avatar answered Sep 19 '22 15:09

Kerrek SB