链接obj文件时出错 [英] Error while Linking obj file

查看:265
本文介绍了链接obj文件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想将.obj文件链接到exe文件,因此需要安装MS c ++或者只有redistributable可以这样做。


我也尝试使用redistributable,但它显示错误c2.dll未找到。


我认为它位于vc 文件夹中。


如果.obj文件是在vc 8.0中创建的,那还想再做一件事,它是否可以与vc 11.0版本链接?



谢谢



Ranjita

解决方案


我想将.obj文件链接到exe文件,因此需要安装MS c ++或者只有可再发行文件才能这样做。


你是什么意思"链接.obj文件到exe"?


如果要在项目中链接.obj文件,则需要安装Visual C ++才能执行此操作。我从来没有这样做过,但我认为你可以将.obj文件添加到项目中。但是你还需要一个头文件,其余的代码使用.obj
文件


我也在尝试使用redistributable但是它显示错误c2.dll未找到。


我认为它位于vc  文件夹中。


你是如何"完全尝试使用可再发行的?这在我看来是不可能的。


如果在vc 8.0中创建.obj文件,还有一件事可以与vc 11.0版本链接吗?


这取决于.obj文件中的内容,但我绝对不会建议它。


再次,你真的想做什么?为什么?


Hi,

I am tying to link .obj file to exe file , so is it required to install MS c++ or only redistributable can do it.

I am also trying with redistributable but it shows error c2.dll not found.

I think it resides in vc  folder.

Want to one more thing if .obj file is created in vc 8.0 can it will link with vc 11.0 version is it possible?

Thanks

Ranjita

解决方案

I am tying to link .obj file to exe file , so is it required to install MS c++ or only redistributable can do it.

What do you mean by "link .obj file to exe"?

If you want to link a .obj file in a project, you need to install Visual C++ to do this. I have never done it, but I think you can just add the .obj file to the project. But you also will need a header file for the rest of the code to use the .obj file

I am also trying with redistributable but it shows error c2.dll not found.

I think it resides in vc  folder.

How are you "trying with redistributable exactly? This seems to me impossible.

Want to one more thing if .obj file is created in vc 8.0 can it will link with vc 11.0 version is it possible?

It depends what is in the .obj file, but I would definitely not advise it.

Again, what are you really trying to do? And why?


这篇关于链接obj文件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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