如何将Windows SDK添加到Eclipse C工具? [英] How to add Windows SDK to Eclipse C tools?

查看:78
本文介绍了如何将Windows SDK添加到Eclipse C工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Eclipse Juno用于Java开发人员,并且想向其中添加C / C ++功能。我下载了Windows SDK,并尝试创建Hello World C ++项目。但是,似乎Eclipse看不到Windows SDK,因此我无法编译我的项目。

解决方案

编译&用Microsoft编译器构建C ++项目是一件繁琐的工作。但是,如果您已经安装了Windows sdk版本,则将近完成了一半的工作...



嗯,我认为您不需要建立MS开发环境,而这已经在您的路上了。



我可以使用Eclipse霓虹灯版本向您展示此过程。我还假设您已经在市场上安装了Eclipse CDT。



您应该做的一件事就是安装 Visaul studio C ++安装程序。



运行eclipse,
打开帮助菜单上的安装新软件...。



键入url



然后选中复选框名称C / C ++ Visual C ++支持。





然后,为自己创建C ++项目。
运行并享受它





我希望这不是一个太晚的答案...



万一您没有任何环境变量。
可以具有主要变量,您必须设置环境。



在开始菜单上打开windown SDK shell。



您可以依次运行set lib,include和set path来检查。


I use Eclipse Juno for Java developers and I want to add C/C++ functionality to it. I downloaded Windows SDK and tried to create Hello World C++ project. But it seems that Eclipse doens'nt see Windows SDK so I cannot compile my project.

解决方案

Compile & build a C++ project with microsoft compiler is some chore work.But if you already installed some version of windows sdk, nearly a half of job done...

Well, I think you don't need to set up MS development environment, which is already in your path.

I can show you this process with eclipse neon version. I also assume you have eclipse cdt installed through the market place.

One thing you should do is installing the 'Visaul studio C++' setup.

Run eclipse, Open the "Install New Software..." on the help menu.

Type the url http://download.eclipse.org/releases/neon, if you don't have any name with available site on it. Then Ok, you see the all available list from the site.

And you check the check box name, C/C++ Visual C++ Support.

Then, Make C++ project for yourself. Run and enjoy it

I hope it is not a too late answer...

In case you don't have any environmental variables. you can have main variables you have to set your env.

Open the windown SDK shell on start menu.

you can check that by running commands set lib, set include, set path in turn.

这篇关于如何将Windows SDK添加到Eclipse C工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆