libgcc_s_dw2-1.dll not found

Problems building or running the engine, queries about how to use features etc.
jjw1993
Gnoblar
Posts: 2
Joined: Tue Dec 07, 2010 9:48 pm

libgcc_s_dw2-1.dll not found

Post by jjw1993 »

I downloaded the OGRE 1.7.2 SDK for MinGW, extracted, then made a new ogre project in code::blocks, but when i try to run it it says "This application has failed to start because libgcc_s_dw2-1.dll was not found. Re-installing the application may fix the problem." I have no clue where this file is or how to get it, any help is appreciated.
CABAListic
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 2903
Joined: Thu Jan 18, 2007 2:48 pm
x 58
Contact:

Re: libgcc_s_dw2-1.dll not found

Post by CABAListic »

Sounds like you may have the wrong version of MinGW. You need the latest release from www.mingw.org.
jjw1993
Gnoblar
Posts: 2
Joined: Tue Dec 07, 2010 9:48 pm

Re: libgcc_s_dw2-1.dll not found

Post by jjw1993 »

I downloaded and installed it, but the same message comes up.
MrWhy
Gnoblar
Posts: 5
Joined: Fri Dec 03, 2010 9:10 pm

Re: libgcc_s_dw2-1.dll not found

Post by MrWhy »

Well, that isn't serious.
All MinGW executables that uses C/C++ routines, classes and libs are necessary linked against libgcc_s_dwxx-x.dll (GNU C lib) and libstdc++-xx.dll (GNU C++ STD lib) All these .dll can be found at the compiler's /bin directory.
All you have to do is to copy&paste those into your main executable's path.
For a static link version of this libs, you can add "-static-libgcc -static-libstdc++" to your compiler flags and you won't need this .dll anymore.
Your executable will be dramatically heavier, due to the internal addition of their contents, but it should be OK.

You even could add the /bin directory to your PATH environment variable with debugging intentions.
This way, you're able to call the .dll wherever your program is in your computer, but don't forget to make a decision when you're going to release your software.

Hope it helps!
User avatar
so0os
Bugbear
Posts: 833
Joined: Thu Apr 15, 2010 7:42 am
Location: Poznan, Poland
x 33

Re: libgcc_s_dw2-1.dll not found

Post by so0os »

hmmm... my Mingw links against msvcrt.dll, Looks like a cross-compiler issue.
Sos Sosowski :)
http://www.sos.gd
User avatar
ImpalerWrG
Gnoblar
Posts: 15
Joined: Sat Feb 27, 2010 7:42 am

Re: libgcc_s_dw2-1.dll not found

Post by ImpalerWrG »

I'm having the same issue (libgcc_s_dw2-1.dll) and would rather not load up the distribution with yet another DLL so I'm trying to figure out static linking. Some of my other searching seems to indicate that -static-libgcc needs to be linker rather then compiler arguments (no mention of the other c++ option though my application is c++ so I likely need that). In either case I'm using CodeBlocks and am not quite sure how compiler and linker options are distinguished their.
Companions the creator seeks, not corpses, not herds and believers. Fellow creators, the creator seeks - those who write new values on new tablets. Companions the creator seeks, and fellow harvesters; for everything about him is ripe for the harvest.
User avatar
ImpalerWrG
Gnoblar
Posts: 15
Joined: Sat Feb 27, 2010 7:42 am

Re: libgcc_s_dw2-1.dll not found

Post by ImpalerWrG »

It looks like this is all related to the switch to the Official MinGW in 1.7.2 from the previous TwilightDragonMedia version. It looks like your have to update that if you go to 1.7.2, This should be put on the various Dependency page as their are now ERRONEOUS and PROMINENT documents still telling people to use TDM. The -static args do in fact need to be linker options and I got them to and I am able to do without them, but I now have a libboost_thread-mgw45-mt-1_44.dll dependency but it's available in the Ogre SDK and I'm tired so I'll figure out a static linking for that later.

I found this page helpful, its one guy going through an Ogre setup with MinGW from scratch and having and documenting about every hitch imaginable

http://tb-nguyen.blogspot.com/2010/11/d ... al-12.html

And the whole upgrade to 1.7.2 was not in vane either, my Broken Debug Overlay is now working perfectly :D
Companions the creator seeks, not corpses, not herds and believers. Fellow creators, the creator seeks - those who write new values on new tablets. Companions the creator seeks, and fellow harvesters; for everything about him is ripe for the harvest.
nixit28
Kobold
Posts: 25
Joined: Fri Mar 11, 2011 8:39 am
Location: India
Contact:

Re: libgcc_s_dw2-1.dll not found

Post by nixit28 »

Hey...
What is the solution???
i am running in the same problem...
and i can't get anything from above discussion.
can any one guide me....Lots of thanks in advance
User avatar
so0os
Bugbear
Posts: 833
Joined: Thu Apr 15, 2010 7:42 am
Location: Poznan, Poland
x 33

Re: libgcc_s_dw2-1.dll not found

Post by so0os »

use old mingw with gcc 3.4, instead of 4.x crap.
Sos Sosowski :)
http://www.sos.gd
nixit28
Kobold
Posts: 25
Joined: Fri Mar 11, 2011 8:39 am
Location: India
Contact:

Re: libgcc_s_dw2-1.dll not found

Post by nixit28 »

I have ogre 1.7.2 is it works fine with 3.4 gcc?
i am using codeblocks in which mingw is included
User avatar
so0os
Bugbear
Posts: 833
Joined: Thu Apr 15, 2010 7:42 am
Location: Poznan, Poland
x 33

Re: libgcc_s_dw2-1.dll not found

Post by so0os »

i dunno, i suppose it should.
Sos Sosowski :)
http://www.sos.gd
nixit28
Kobold
Posts: 25
Joined: Fri Mar 11, 2011 8:39 am
Location: India
Contact:

Re: libgcc_s_dw2-1.dll not found

Post by nixit28 »

Is there any other alternative
User avatar
so0os
Bugbear
Posts: 833
Joined: Thu Apr 15, 2010 7:42 am
Location: Poznan, Poland
x 33

Re: libgcc_s_dw2-1.dll not found

Post by so0os »

yeah, find the lib, or don't use mingw at all
Sos Sosowski :)
http://www.sos.gd
nixit28
Kobold
Posts: 25
Joined: Fri Mar 11, 2011 8:39 am
Location: India
Contact:

Re: libgcc_s_dw2-1.dll not found

Post by nixit28 »

what it is?
User avatar
so0os
Bugbear
Posts: 833
Joined: Thu Apr 15, 2010 7:42 am
Location: Poznan, Poland
x 33

Re: libgcc_s_dw2-1.dll not found

Post by so0os »

It's in Mingw/bin dir, if you had it shipped with codeblocks, it should be in codeblocks/bin or somewhere.
Sos Sosowski :)
http://www.sos.gd
nixit28
Kobold
Posts: 25
Joined: Fri Mar 11, 2011 8:39 am
Location: India
Contact:

Re: libgcc_s_dw2-1.dll not found

Post by nixit28 »

from which version i need to alter it ver-3 or ver-4
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: libgcc_s_dw2-1.dll not found

Post by jacmoe »

You need to install the *latest* MinGW directly from the MinGW site.
That's the only thing which will do.

After that, you need to tell Code::Blocks to use that instead of the integrated MinGW.

Add C:\MinGW\bin to your PATH environment variable.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
nixit28
Kobold
Posts: 25
Joined: Fri Mar 11, 2011 8:39 am
Location: India
Contact:

Re: libgcc_s_dw2-1.dll not found

Post by nixit28 »

i done that... It is running...but, it's not good because it is not what i expected it shows me something like this
this is what i got in the command prompt
this is what i got in the command prompt
WhirledPeas
Kobold
Posts: 27
Joined: Thu Mar 10, 2011 7:51 pm
x 1

Re: libgcc_s_dw2-1.dll not found

Post by WhirledPeas »

I've got almost the same exact problem here. I've managed to find the requested .cfg file, so I'm not sure what the problem is. I've been trying to run the baseapplication that you download form this website, so I didn't even code anything yet.

I found this thread:

http://www.ogre3d.org/forums/viewtopic. ... 96&start=0

which mentions pretty much the same problem. The presented solution from that shouldn't apply to me because as far as I can tell the code that was suggested to be added to the program was already added as far as I can tell. I'm wondering if the problem stems from this particular bit of code:

Code: Select all

Ogre::ConfigFile cf;
    cf.load(mResourcesCfg);
perhaps the syntax for that line is wrong or something due to a version change since the BaseApplication project was uploaded?

thanks in advance
nixit28
Kobold
Posts: 25
Joined: Fri Mar 11, 2011 8:39 am
Location: India
Contact:

Re: libgcc_s_dw2-1.dll not found

Post by nixit28 »

still not getting...i also tried to changed the syntax as shown in...http://www.ogre3d.org/forums/viewtopic. ... 96&start=0
but not succeed.
you found somthing
WhirledPeas
Kobold
Posts: 27
Joined: Thu Mar 10, 2011 7:51 pm
x 1

Re: libgcc_s_dw2-1.dll not found

Post by WhirledPeas »

Just to facilitate things, here is the exact text of the error in the console when the program crashes:
OGRE EXCEPTION(6:FileNotFoundException): 'resources_d.cfg' file not found! in ConfigFile::load at ../../../../../OgreMain/src/OgreConfigFile.cpp (line 83)
nixit28
Kobold
Posts: 25
Joined: Fri Mar 11, 2011 8:39 am
Location: India
Contact:

Re: libgcc_s_dw2-1.dll not found

Post by nixit28 »

wait....have youadd some cfg files to your project.
which is placed in yr bin dir.
WhirledPeas
Kobold
Posts: 27
Joined: Thu Mar 10, 2011 7:51 pm
x 1

Re: libgcc_s_dw2-1.dll not found

Post by WhirledPeas »

I'm at work presently, so I can't check the exact file locations, but I believe that I did do that. bin is the directory where 'DEBUG' and 'RELEASE' are located right? Also, I was wondering if not having a 'RELEASE' folder could be the possible cause of the problem.

EDIT: did some more looking and found about a program called filemon which when running logs all attempts to access files and whether it was successful as well as the location that was being looked in. I'll give it a try when I get home from work.
Last edited by WhirledPeas on Fri Mar 11, 2011 6:40 pm, edited 1 time in total.
nixit28
Kobold
Posts: 25
Joined: Fri Mar 11, 2011 8:39 am
Location: India
Contact:

Re: libgcc_s_dw2-1.dll not found

Post by nixit28 »

Release folder is not there because u haven't build yr project in release mode...
but it won't be a problem u need to copy file from debug to debug
nixit28
Kobold
Posts: 25
Joined: Fri Mar 11, 2011 8:39 am
Location: India
Contact:

Re: libgcc_s_dw2-1.dll not found

Post by nixit28 »

Now i got one another problem...
after compiling it stared cmd prompt and then told me {Proj_Name].exe has stop working
Post Reply