创建 C++从 VS2005 或 VS2010 中的现有代码进行项目
有人可以提供有关如何从现有代码库创建 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为您的项目添加新的 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.