문제

My Eclipse didn't show any console outputs. I tested the ".exe" in the debug file of my C++ project, with wich i received an error that "libgcc_s_dw2-1.dll" was missing. I read abit on this and i found that i could simply copy/paste that file from my c:/MinGW/bin folder to the ".exe" in the "/debug" folder of my project. That helped me with that error but i then received the message that "libstdc++-6.dll" was missing, so i did the same again.

Now The ".exe" works fine and I get an output in my eclipse.

But now i'm afraid that i will get simillar erro's at my next build if i use some what more complex programming. I also think that it would be very timeconsuming if i have to add those files too all of my future projects.

Question: So my question now isn't there a way to tell eclpise that those .dll files are at "c:/MinGW/bin"?

PS. I suspect that a similar question already exists but I wouldn't have a clue on what tags I'd have to search for.

도움이 되었습니까?

해결책

Speacial thanks to @Deniz !

  • right click on "my computer" => properties .
  • on the right select "Advanced system settings".
  • open "Enviormentvariables"
  • search for "path"
  • select Edit
  • you'll have a list of paths, hit "end" on your keyboard to make sure you are at the end of this list.
  • then add ";" to close the previous path and add the path to your MinGW/bin location. (by default C:\MinGW\bin).

result in adding ";C:\MinGW\bin"

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top