VirusTotal / yara

The pattern matching swiss knife
https://virustotal.github.io/yara/
BSD 3-Clause "New" or "Revised" License
8.24k stars 1.44k forks source link

无法解析的外部符号 compile_files #1499

Closed mfxiaosheng closed 3 years ago

mfxiaosheng commented 3 years ago

1>正在生成代码... 1>yara.obj : error LNK2019: 无法解析的外部符号 compile_files,函数 main 中引用了该符号 1>yara.obj : error LNK2019: 无法解析的外部符号 define_external_variables,函数 main 中引用了该符号 1>D:\code\Windows-driver-samples-master\filesys\miniFilter\avscan\yara-master\windows\vs2017\Debug\yara64.exe : fatal error LNK1120: 2 个无法解析的外部命令

plusvic commented 3 years ago

I'm sorry, but you are not providing enough context about this error. Can you explain a bit more about your issue?

jianxinguocn commented 3 years ago

1>正在生成代码... 1>yara.obj : error LNK2019: 无法解析的外部符号 compile_files,函数 main 中引用了该符号 1>yara.obj : error LNK2019: 无法解析的外部符号 define_external_variables,函数 main 中引用了该符号 1>D:\code\Windows-driver-samples-master\filesys\miniFilter\avscan\yara-master\windows\vs2017\Debug\yara64.exe : fatal error LNK1120: 2 个无法解析的外部命令

Do you have solutions?

plusvic commented 3 years ago

It looks like the Visual Studio project for VS2017 is out of date, I recommend using the VS2015 project instead.

jianxinguocn commented 3 years ago

It looks like the Visual Studio project for VS2017 is out of date, I recommend using the VS2015 project instead.

Yes VS2015 is correct! VS2017 project file doesn't work