简体   繁体   English

Eclipse CDT MinGW路径变量

[英]Eclipse CDT MinGW path variables

My Eclipse didn't show any console outputs. 我的Eclipse没有显示任何控制台输出。 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. 我在C ++项目的调试文件中测试了“ .exe”,但收到的错误是“ libgcc_s_dw2-1.dll”丢失。 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. 我对此进行了一些了解,发现可以将文件从c:/ MinGW / bin文件夹复制/粘贴到项目的“ / debug”文件夹中的“ .exe”。 That helped me with that error but i then received the message that "libstdc++-6.dll" was missing, so i did the same again. 那帮助我解决了该错误,但随后我收到消息,提示“ libstdc ++-6.dll”丢失,因此我再次执行了同样的操作。

Now The ".exe" works fine and I get an output in my eclipse. 现在,“。exe”可以正常工作,并且在日食中得到输出。

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"? 问题:所以我的问题现在没有办法告诉eclpise这些.dll文件位于“ c:/ MinGW / bin”吗?

PS. 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 ! 特别感谢@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. 关闭上一个路径并将该路径添加到您的MinGW / bin位置。 (by default C:\\MinGW\\bin). (默认情况下为C:\\ MinGW \\ bin)。

result in adding ";C:\\MinGW\\bin" 结果添加“; C:\\ MinGW \\ bin”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM