创建 C++从 VS2005 或 VS2010 中的现有代码进行项目

发布于 2024-10-08 01:10:13 字数 356 浏览 0 评论 0原文

有人可以提供有关如何从现有代码库创建 VS c++ 项目的详细信息吗?

在我的场景中,我尝试使用以下代码 http://gears.googlecode.com/svn /行李箱/齿轮/。我已将整个主干下载到计算机上的一个文件夹中,但现在希望在 VS IDE 中打开它。我有 VS 2010 和 VS2005。

我是否只需创建一个新的“空 c++ 项目”并手动添加所有文件?或者还有其他办法吗?

如何确保所需的依赖项和提供的 makefile 已正确添加到项目中?

任何指导将不胜感激。

Could someone please be kind enough to provide details of how one would go about creating a VS c++ project from an existing codebase?

In my scenario I am attempting to use the following code http://gears.googlecode.com/svn/trunk/gears/. I have downloaded the entire trunk to a folder on my computer but now wish to open it in the VS IDE. I have both VS 2010 and VS2005.

Do I simply have to create a new "empty c++ project" and manually add all the files? Or is there some other way?

How do I make sure that the required dependencies and the provided makefile is correctly added to the project?

Any guidance would be highly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

も让我眼熟你 2024-10-15 01:10:13

为您的项目添加新的 Windows 解决方案并不是很困难。很难说它是否可以编译,因为该项目可能会调用一些特定于 UNIX 的头文件,例如 .

无论如何,您需要创建一个新的解决方案。然后将所有源文件添加到您的项目中。您不必模仿现有的文件夹结构。我建议您尝试编译所有源文件,如果某些内容未编译,请检查 Makefile。有时,文件包含在修订版中但实际上未编译。

很难具体指导你,如果你在编译或链接时遇到任何问题,请回来提出新问题。

It's not very difficulty to add a new Windows solution for your project. Whether it compiles or not is hard to say, as the project might invoke some unix-specific header files, for example .

Anyway, you need to create a new solution. Then add all source files to your project. You don't have to mimic the existing folder structure. I would suggest you try to compile all source files, if something is not compiling, check the Makefile. Sometimes, a file is included in the revision but actually not compiled.

It's hard to guide you specifically, come back and make a new question if you have any problem in compiling or linking.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文