Pro*C 可以与 MSVC 6 一起使用吗?
如何让 Pro*c 在 MSVC 6 中工作?
换句话说,将 .pc 文件编译为 .cpp 文件。
How do you get Pro*c to work within MSVC 6?
In otherwords compile a .pc file into a .cpp file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我不熟悉 Pro*C,但一般来说,使用 MSVC 中的自定义构建步骤是可能的。 如果将 .pc 文件添加到项目中,然后查看该文件的“项目设置”对话框,在“自定义生成”选项卡上,您可以指定将 .pc 文件编译为 .cpp 所需的命令。 您还应该在“输出”部分中输入输出 .cpp 的名称,以便构建系统了解文件依赖关系,并将输出 .cpp 添加到您的项目中。
I'm not familiar with Pro*C, but in general it is possible, using a custom build step in MSVC. If you add the .pc file to your project, then view the Project Settings dialog for that file, on the Custom Build tab you can specify the command(s) needed to compile the .pc file to .cpp. You should also enter the name of the output .cpp in the Output section, so that the build system understands the file dependencies, and add the output .cpp to your project, of course.
Visual C++/Visual Studio 除了作为编辑器之外不会有太大帮助,但您应该能够让它与 Makefile 项目一起使用。
Visual C++/Visual Studio won't be a big help other than being an editor, but you should be able to get this to work with a Makefile project.
你可以做到(不幸的是,我不会提供太多帮助,因为自从我上次使用 VC6 以来已经很多年了。)
根据我的记性,我们设置了文件类型“.pc”(在VC的工具部分?),以便VC知道调用proC来生成该文件的.c或.cpp版本。
我相信我们在项目中包含了(源).pc 和(生成的).cpp 文件(可能有更好的方法来做到这一点),以便我们可以轻松地在 VC 中编辑 proC 文件。
(我不记得我们是如何告诉VC cpp文件依赖于pc文件的)
祝你好运。
You can do it (unfortunatley I'm not going to be much help as it has been many years since I last used VC6.)
According to my failing memory, we set up the file type '.pc' (in the tools section of VC?) so that VC knew to call proC to generate a .c or .cpp version of the file.
I believe we included both the (source) .pc and (generated) .cpp file in the project (there is probably a better way to do this) so that we could easily edit the proC file in VC.
(I can't remember how we told VC that the cpp file was dependent on the pc file)
Best of luck.
在 .pc 文件的自定义构建选项卡中。
我将其弹出到输出中。 proc的输出是一个cpp文件
命令窗口中有2行。 一是设置MSVC 6环境。 另一个在 .pc 文件上调用 proc。
您必须将 .cpp 文件添加到您的项目中才能对其进行编译。 如果需要调试,请在 .cpp 文件中设置断点。
这几乎涵盖了它。
In the custom build tab for the .pc file.
I pop this in the outputs. The output of proc, is a cpp file
There are 2 lines in the commands window. One to set the MSVC 6 environment. The other to invoke proc on the .pc file.
You must add the .cpp file to your project in order to compile it. If you need to debug, set your breakpoints in the .cpp file.
That pretty much covers it.