[UWP] UWP接受c文件扩展名 [英] [UWP]UWP accepts c file extension
本文介绍了[UWP] UWP接受c文件扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人,
我想知道UWP环境是否接受c文件扩展名。
目前,我需要重命名cpp的所有c文件扩展名都可以编译。
谢谢。
Jacky
解决方案
您需要编译库中的c文件。
Windows运行时组件只接受C ++。 / p>
如果需要在C ++文件中使用C链接器,请使用extern"C"。 {}条款。
http://stackoverflow.com/questions/1041866/in-c-source-what-is-the-效应的-的extern-C
Dear All,
I am wondering whether UWP environment accepts c file extension or not.
Currently, I need to rename all the c file extension to cpp to make it compile.
Thanks.
Jacky
解决方案
You need to compile the c files inside a library.
Windows Runtime components will only accept C++.
If you need to use the C linker in C++ files, use the extern "C" {} clause.
http://stackoverflow.com/questions/1041866/in-c-source-what-is-the-effect-of-extern-c
这篇关于[UWP] UWP接受c文件扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文