将C转换为C ++项目 [英] Convert C to C++ project

查看:102
本文介绍了将C转换为C ++项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个包含一些由C编译的库的项目.我想将这些库转换为我的项目.如何转换呢?如果直到编译该项目,我都会收到以下错误消息:


chapters.obj:错误LNK2019:未解决的外部符号"void __cdecl write_chapters_simple(int&,class libmatroska :: KaxChapters *,class mm_io_c *)"(?write_chapters_simple @@ YAXAAHPAVKaxChapters @ libmatroska @@ PAVmm_io_c) __catch $?extract_chapters @@ YAXABV?$ basic_string @ DU?$ char_traits @ D @ std @@ V?$ allocator @ D @ 2 @@ std @@ _ NW4parse_mode_e @ kax_analyzer_c @@@ Z $ 0


您能帮我解决这个问题吗?

谢谢! > char_traits @ D @ std @@ V?


Hi,

I have a project with some libraries compile by C. I want to convert those libraries to my project. How to convert for it ? If I until compile this project then I receive some error the following :


chapters.obj : error LNK2019: unresolved external symbol "void __cdecl write_chapters_simple(int &,class libmatroska::KaxChapters *,class mm_io_c *)" (?write_chapters_simple@@YAXAAHPAVKaxChapters@libmatroska@@PAVmm_io_c@@@Z) referenced in function __catch$?extract_chapters@@YAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_NW4parse_mode_e@kax_analyzer_c@@@Z$0


Can your help for me to solver this problem

Thanks !

解决方案

?extract_chapters@@YAXABV?


basic_string@DU?


char_traits@D@std@@V?


这篇关于将C转换为C ++项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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