Ask your own question, for FREE!
Computer Science 16 Online
OpenStudy (kikuo):

Alright, so I'm having some executing issues. Whenever I try to execute from the bin-debugger-program name pathway I get this. http://prntscr.com/bf1cbd http://prntscr.com/bf1chk I need these extensions before I send into professor or he can't open them, but I don't know how to install them and I've already re-installed twice.

OpenStudy (kikuo):

@Sachintha

OpenStudy (kikuo):

http://stackoverflow.com/questions/6404636/libstdc-6-dll-not-found If you need help guiding me through this here this is. I am using MingW to compile.

OpenStudy (kikuo):

http://stackoverflow.com/questions/4702732/the-program-cant-start-because-libgcc-s-dw2-1-dll-is-missing This is the link for the other extension that's missing. The instructions seem pretty clear, but I'm having trouble correctly doing them as my attempts never work. Can you help me through it?

OpenStudy (kikuo):

http://stackoverflow.com/questions/4702732/the-program-cant-start-because-libgcc-s-dw2-1-dll-is-missing This is the link for the other extension that's missing. The instructions seem pretty clear, but I'm having trouble correctly doing them as my attempts never work. Can you help me through it?

OpenStudy (sachintha):

You compiled it like this? "g++ code.cpp -o Ashton2.exe"

OpenStudy (kikuo):

I'm not sure how exactly it compiled. In CodeBlocks, there is simply a little compile button. It only tells you if it was successful or not. http://prntscr.com/bf1fxj

OpenStudy (sachintha):

Try adding the libraries as shown in the link below. http://stackoverflow.com/questions/5862757/how-do-i-link-to-a-library-with-codeblocks

OpenStudy (kikuo):

Which libraries do I have to add specifically in this case?

OpenStudy (kikuo):

And why will this solve the missing .dll things I need? Just curious haha.

OpenStudy (kikuo):

There is two libraries I will need, but I'm not sure what specifically to add. @Sachintha

OpenStudy (sachintha):

Add libgcc and libstdc libraries. I am following what others have done since I have never used code blocks. :D

OpenStudy (kikuo):

Alright I added the libraries, but still got the same result. http://prntscr.com/bf1o1e If I did everything right, time to consider another option haha. @Sachintha

OpenStudy (kikuo):

Though, preferably, don't give up on me. This is the last thing I need help with LOL.

OpenStudy (sachintha):

Type the name of dll files properly. I was lazy to type the full till the extension. :3 Like libstdc++-6. Make sure everything is typed properly.

OpenStudy (kikuo):

Oh haha What's the full name of the other one : ) Sorry I'm just making sure

OpenStudy (sachintha):

Did it work?

OpenStudy (kikuo):

Oh I was waiting for you to confirm the other one haha

OpenStudy (sachintha):

libgcc_s_dw2-1 libstdc++-6

OpenStudy (kikuo):

Alright let me try it @Sachintha

OpenStudy (kikuo):

Nope, no luck yet.

OpenStudy (sachintha):

Ohh :(

OpenStudy (kikuo):

Actually, it did work for one.

OpenStudy (kikuo):

http://prntscr.com/bf205q It's this one I'm missing still.

OpenStudy (kikuo):

http://stackoverflow.com/questions/4984612/program-cant-find-libgcc-s-dw2-1-dll Should I try linking -static based off of what he's saying?

OpenStudy (kikuo):

I put those in the link place like I did the others but neither worked

OpenStudy (kikuo):

http://stackoverflow.com/questions/4702732/the-program-cant-start-because-libgcc-s-dw2-1-dll-is-missing I believe this is a MinGW/gcc compiler issue, rather than a Microsoft Visual Studio setup. The libgcc_s_dw2-1.dll should be in the compiler's bin directory. You can add this directory to your PATH environment variable for runtime linking, or you can avoid the problem by adding "-static-libgcc -static-libstdc++" to your compiler flags. If you plan to distribute the executable, the latter probably makes the most sense. If you only plan to run it on your own machine, the changing the PATH environment variable is an attractive option (keeps down the size of the executable). Updated: Based on feedback from Greg Treleaven (see comments below), I'm adding links to: [Screenshot of Code::Blocks "Project build options"] [GNU gcc link options] The latter discussion includes -static-libgcc and -static-libstdc++ linker options. What about what this guy is saying?

OpenStudy (kikuo):

Alright, well I tried adding the linking options he recommended. I suppose I should try to do this now, but I'm not sure how. Can you explain? The libgcc_s_dw2-1.dll should be in the compiler's bin directory. You can add this directory to your PATH environment variable for runtime linking

OpenStudy (sachintha):

It involves editing system environment variables. Btw, do you have the dll file in your program folder?

OpenStudy (kikuo):

No. How do I install it there? Where in the program file?

OpenStudy (sachintha):

Copy the dll file from the mingw bin directory to the folder where your program(exe) resides.

OpenStudy (kikuo):

http://prntscr.com/bf265m Oh they do exist.

OpenStudy (kikuo):

I'm not sure where to paste them. Like, here? http://prntscr.com/bf26ge

OpenStudy (sachintha):

Yeah paste the missing dll file there and try.

OpenStudy (kikuo):

HOLY CRAP YES IT WORKED AHHHH I WANNA MARRY YOU THANK YOU

OpenStudy (kikuo):

IM SCREAMING LIKE A GIRL IVE WORKED AT LEAST 6 HOURS ON THIS THANK YOU

OpenStudy (sachintha):

Thank and marry rubenvb in stackoverflow. xD I did nothing. You could add the other library without linking it in code block. Anyway, it worked! :D

OpenStudy (kikuo):

It worked for all but one of my programs? This was one of the messages I got. Well, six, but I did the same thing in all of them and this program can't build because it can't detect the extensions I pasted in the directory. http://prntscr.com/bf29x9 @Sachintha

OpenStudy (sachintha):

Well that program is in another directory. Isn't it?

OpenStudy (kikuo):

How would I find that out?

OpenStudy (sachintha):

Is it in the same folder as ashton.exe?

OpenStudy (kikuo):

No, but they all have the bin-debug-program pathway and I paste the extensions in the same place as I did the others where it worked

OpenStudy (sachintha):

Seems like it is a compiling error. Make sure to add those dll from code block and try compiling.

OpenStudy (kikuo):

from code block What do you mean?

OpenStudy (kikuo):

It won't let me build I have to do that before I compile but it won't let me build due to those reasons

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!