SFML community forums

Help => General => Topic started by: zachy64 on March 05, 2012, 11:22:59 pm

Title: The program can't start because libstdc++-6.dll is missing?
Post by: zachy64 on March 05, 2012, 11:22:59 pm
Hello, I was trying to install SFML with Code::Blocks. I set up everything, placed the .a files in /lib and .hpp files in /include, and I linked everything. The program compiles fine, but when I start it, it says "The program can't start because libstdc++-6.dll is missing" (You can see it at http://prntscr.com/6r4kb)
If someone could tell me why this is happening, it would help so much!
Thanks in advance.
Title: The program can't start because libstdc++-6.dll is missing?
Post by: Grimshaw on March 06, 2012, 01:13:19 am
Well, copy that dll to the exe directory. It should be in a bin dir, somewhere within the mingw compiler dir.
Title: The program can't start because libstdc++-6.dll is missing?
Post by: pacifistcottage on March 06, 2012, 03:45:44 pm
You will probably need to include libgcc_s_dw2-1.dll as well. Should be in the same folder as libstdc++-6.dll.
Title: The program can't start because libstdc++-6.dll is missing?
Post by: mateandmetal on March 06, 2012, 10:24:21 pm
You can link the std C++ lib statically .. just add -static-libstdc++ to your link options