Visual Studio外部符号当文件存在时出错 [英] Visual Studio External Symbol Error while file is present

查看:178
本文介绍了Visual Studio外部符号当文件存在时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编译位于此处的 minidump_file_writer_unittests 来编译在我的Windows机器上。您可以克隆存储库以下载解决方案。以前的代码只是为Linux编译的,所以有一些问题。目前,我面临未解决的外部符号错误。我理解这个错误是因为我的代码找不到相关的源文件。

I am trying to compile minidump_file_writer_unittests located here to compile on my Windows machine. You can clone the repository to download the solution. The code previously was only compiled for Linux so there are some problems. Currently, I am facing Unresolved External Symbol error. I understand that this error is because my code can't find the relevant source files.

具体来说,基本问题是 minidump_file_writer.cc 找不到函数 UTF32ToUTF16Char(* str, out)和在线151上的 UTF8ToUTF16Char 。此函数存在于 .. \common\string_conversion.h 并且此头文件的源文件在同一目录中。我已经将源包含在项目中,但未能检测到该问题。

Concretely, the basic problem is that minidump_file_writer.cc fails to locate the function UTF32ToUTF16Char(*str, out) on line 122 and UTF8ToUTF16Char on line 151. This function is present in ..\common\string_conversion.h and the source file for this header file is in the same directory. I have included the source in the project and yet it fails to detect the problem.

您可以在这里看到问题在哪里吗?

Can you please see where exactly is the problem here?

推荐答案

您需要将文件 convert_UTF.c 包含到您的minidump_file_writer_unittest项目中。它之后编译。

You need to include file convert_UTF.c to your "minidump_file_writer_unittest" project. It compiles after that.

这篇关于Visual Studio外部符号当文件存在时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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