VS 2017未解决的外部问题 [英] Unresolved externals with VS 2017

查看:159
本文介绍了VS 2017未解决的外部问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我第一次使用VS 2017社区版。我收到此错误

I am using VS 2017 community edition for the first time. I am getting this error

 错误LNK2001:未解析的外部符号__enclave_config

 error LNK2001: unresolved external symbol __enclave_config

我在其他帖子中读到了链接< g class =" ; gr_ gr_82 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling"数据-GR-ID =" 82" id =" 82"> libcmt< / g> .lib, < g
class =" gr_ gr_84 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling"数据-GR-ID =" 84" id =" 84"> libvcruntime< / g> .lib和< g class =" gr_ gr_83 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling
ins-del multiReplace"数据-GR-ID =" 83" id =" 83"> libucrt< / g> .lib可以解决它,但实际上它会让它变得更糟。

I read in other posts that linking against <g class="gr_ gr_82 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" data-gr-id="82" id="82">libcmt</g>.lib, <g class="gr_ gr_84 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" data-gr-id="84" id="84">libvcruntime</g>.lib and <g class="gr_ gr_83 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="83" id="83">libucrt</g>.lib could resolve it, however, it made it worse actually.

我正在使用工具集链接< g class =" gr_ gr_14 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" ;数据-GR-ID =" 14'; id =" 14"> 10.0.15603.0
,< / g>我认为还有另一个较新的工具集,但它没有与编译器一起安装。 VS 2017需要这个工具集,这就是我收到此错误的原因吗?

我试图寻找未解决的符号,但也找不到任何提及。

Jim.S

推荐答案

感谢您在此处发帖。

>>错误LNK2001:未解析的外部符号__enclave_config

请提供有关您的项目的更多信息。它的类型是什么?

Please provide more information about your project. What's the type of it?

对于这种情况,我建议您使用vs2017重新安装Windows SDK。

For this case, I suggest you reinstall the Windows SDKs with your vs2017.

你还应该注意到你不能使用静态链接的CRT(
/ MT或/ MTd选项
/ clr 。请改用动态链接库(/ MD或/ MDd)。

You should also notice that you couldn't use the statically linked CRT ( /MT or /MTd options) with /clr. Use the dynamically-linked libraries (/MD or /MDd) instead.

希望这可以为您提供帮助。

Hope this could be help of you.

最好的问候,

Baron Bi


这篇关于VS 2017未解决的外部问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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