首页
社区
课程
招聘
未解决 在内核中启用STL后 使用最新的MSVC库问题
发表于: 2020-5-3 19:08 9081

未解决 在内核中启用STL后 使用最新的MSVC库问题

2020-5-3 19:08
9081



使用最新版的MSVC默认库 会报很多错误

用旧的MSVC的话 可以正常编译

有木有同志踩过坑 要想用最新的MSVC库要咋整

VS2019 WDK10


这图片怎么贴不上来  





[培训]《安卓高级研修班(网课)》月薪三万计划,掌握调试、分析还原ollvm、vmp的方法,定制art虚拟机自动化脱壳的方法

最后于 2020-5-3 21:08 被淡然他徒弟编辑 ,原因:
收藏
免费 1
支持
分享
最新回复 (10)
雪    币: 6066
活跃值: (4752)
能力值: ( LV10,RANK:160 )
在线值:
发帖
回帖
粉丝
2

我服了 图片上传不上来。

最后于 2020-5-3 19:11 被淡然他徒弟编辑 ,原因:
2020-5-3 19:10
0
雪    币: 6066
活跃值: (4752)
能力值: ( LV10,RANK:160 )
在线值:
发帖
回帖
粉丝
3
1>process.obj : error LNK2001: 无法解析的外部符号 _invoke_watson
1>main.obj : error LNK2001: 无法解析的外部符号 _invoke_watson
1>manualmap.obj : error LNK2001: 无法解析的外部符号 _invoke_watson
1>memory_section.obj : error LNK2001: 无法解析的外部符号 _invoke_watson
1>portable_executre.obj : error LNK2001: 无法解析的外部符号 _invoke_watson
1>process.obj : error LNK2001: 无法解析的外部符号 "void (__cdecl* std::_Raise_handler)(class stdext::exception const &)" (?_Raise_handler@std@@3P6AXAEBVexception@stdext@@@ZEA)
1>main.obj : error LNK2001: 无法解析的外部符号 "void (__cdecl* std::_Raise_handler)(class stdext::exception const &)" (?_Raise_handler@std@@3P6AXAEBVexception@stdext@@@ZEA)
1>manualmap.obj : error LNK2001: 无法解析的外部符号 "void (__cdecl* std::_Raise_handler)(class stdext::exception const &)" (?_Raise_handler@std@@3P6AXAEBVexception@stdext@@@ZEA)
1>memory_section.obj : error LNK2001: 无法解析的外部符号 "void (__cdecl* std::_Raise_handler)(class stdext::exception const &)" (?_Raise_handler@std@@3P6AXAEBVexception@stdext@@@ZEA)
1>portable_executre.obj : error LNK2001: 无法解析的外部符号 "void (__cdecl* std::_Raise_handler)(class stdext::exception const &)" (?_Raise_handler@std@@3P6AXAEBVexception@stdext@@@ZEA)
2020-5-3 19:40
0
雪    币: 1519
活跃值: (2047)
能力值: ( LV3,RANK:35 )
在线值:
发帖
回帖
粉丝
4

声明一下就好了

  _CRTIMP2_PURE_IMPORT _Prhand _Raise_handler;

extern "C" void __cdecl _invoke_watson(
    wchar_t const* const expression,
    wchar_t const* const function_name,
    wchar_t const* const file_name,
    unsigned int   const line_number,
    uintptr_t      const reserved)
{
    return;
}
最后于 2020-5-3 20:05 被Chords编辑 ,原因:
2020-5-3 20:04
0
雪    币: 6066
活跃值: (4752)
能力值: ( LV10,RANK:160 )
在线值:
发帖
回帖
粉丝
5
using _STDEXT exception;

using _Prhand = void(__cdecl*)(const exception&);

_CRTIMP2_PURE_IMPORT _Prhand _Raise_handler;

EXTERN_C void __cdecl _invoke_watson(
    wchar_t const* const expression,
    wchar_t const* const function_name,
    wchar_t const* const file_name,
    unsigned int   const line_number,
    uintptr_t      const reserved)
{
    UNREFERENCED_PARAMETER(expression);
    UNREFERENCED_PARAMETER(function_name);
    UNREFERENCED_PARAMETER(file_name);
    UNREFERENCED_PARAMETER(line_number);
    UNREFERENCED_PARAMETER(reserved);
}

已经搞定了 谢谢同志。

最后于 2020-5-3 23:36 被淡然他徒弟编辑 ,原因:
2020-5-3 20:41
0
雪    币: 20
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
6
都2019啦啊
2020-5-4 21:57
0
雪    币: 6066
活跃值: (4752)
能力值: ( LV10,RANK:160 )
在线值:
发帖
回帖
粉丝
7
nobrume 都2019啦啊
对啊 2019不爽吗
2020-5-4 22:39
0
雪    币: 0
活跃值: (67)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
8
我的跟你的情况相似但是有些不同:请帮忙看下
严重性        代码        说明        项目        文件        行        禁止显示状态
错误        LNK1120        1 个无法解析的外部命令        arksys        F:\working\test\vc19\arksword\x64\Debug\arksys.sys        1        
错误        LNK2001        无法解析的外部符号 "void (__cdecl* std::_Raise_handler)(class stdext::exception const &)" (?_Raise_handler@std@@3P6AXAEBVexception@stdext@@@ZEA)        arksys        F:\working\test\vc19\arksword\arksys\jkCommand.obj        1        
错误        LNK2001        无法解析的外部符号 "void (__cdecl* std::_Raise_handler)(class stdext::exception const &)" (?_Raise_handler@std@@3P6AXAEBVexception@stdext@@@ZEA)        arksys        F:\working\test\vc19\arksword\arksys\NotifyCallback.obj        1        
2020-12-1 17:10
0
雪    币: 6066
活跃值: (4752)
能力值: ( LV10,RANK:160 )
在线值:
发帖
回帖
粉丝
9
双刃剑 我的跟你的情况相似但是有些不同:请帮忙看下 严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK1120 1 个无法解析的外部命令 arksys F:\working\test\vc19 ...
缺少什么函数 自己定义个空函数就好啦
2020-12-8 23:16
0
雪    币: 665
活跃值: (1046)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
10
遇到这个问题了,搜到了存爷,看到了x64inject。想要
2021-10-27 01:17
0
雪    币: 1348
活跃值: (3247)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
11
我就想知道能在内核中把stl库单独打包提取出来吗?  我自己在做bat批处理自动化编译,自己调用的cl库,丢弃了vs和wdk,现在还差stl的库没有提取出来
2021-10-27 08:52
0
游客
登录 | 注册 方可回帖
返回
//