简体   繁体   English

使用Visual Studio 2012构建Eclipse C ++ Docfrac项目

[英]Build Eclipse C++ Docfrac project using Visual Studio 2012

Can someone please help me understand how to build the open source Docfrac C++ Eclipse project with Visual Studio 2012? 有人可以帮助我了解如何使用Visual Studio 2012构建开源Docfrac C ++ Eclipse项目吗?

Docfrac Docfrac

UPDATE 1: 更新1:

When building project in VS 2012, I get: 在VS 2012中构建项目时,我得到:

Unexpected end of file while looking for precompiled header. 查找预编译头时意外结束文件。 Did you forget to add '#include "pch.h"' to your source? 你有没有忘记在你的来源中添加'#include“pch.h”'?

UPDATE 2: Got past above issues thanks to Rowland. 更新2:感谢Rowland完成上述问题。

Now i get, could not open #include vcl.h . 现在我得到了,无法打开#include vcl.h。 No such file or directory. 没有相应的文件和目录。

CLOSING COMMENTS: 结束评论:

Unfortunately, what I wanted to achieve is not directly possible. 不幸的是,我想要达到的目标并非直接可行。 Thanks to Rowland for pointing me in the right direction. 感谢罗兰指出我正确的方向。

For the error relating to precompiled headers, select the source code files (.cpp or .c) that you added to the project in the Solution Explorer. 有关与预编译头相关的错误,请在解决方案资源管理器中选择您添加到项目中的源代码文件(.cpp或.c)。 Then right-click, choose Properties. 然后右键单击,选择“属性”。 Then in the C/C++ section under Precompiled Headers, select the option that says "Not using precompiled headers". 然后在预编译标题下的C / C ++部分中,选择“不使用预编译标题”选项。 Rebuild and bingo. 重建和宾果游戏。

截图

Alternatively, you can right-click the project itself and set it for all files. 或者,您可以右键单击项目本身并为所有文件设置它。

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

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