用clang构建sdl [英] Building sdl with clang

查看:113
本文介绍了用clang构建sdl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好。
$


我正在学习sdl,我正在使用Visual Studio 2015更新1.最近我转向clang编译器,现在sdl是当然不兼容。我想按照他们的建议构建库,只需打开* .sln文件(来自VS10,由我的VS15升级)并构建
项目,我将平台工具集更改为clang,但它不起作用。我可以使用visual c ++编译器构建它,但是有了clang我就会收到错误: 



$
1> C:\Program Files(x86)\ MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Clang.targets(206,5):error:Element< DebugInformationFormat>具有无效的"OldStyle"值。



$
如何使用clang构建库?



谢谢。

Hello.

I'm learning sdl and I'm using Visual Studio 2015 update 1. Recently I've move to clang compiler and now sdl is of course not compatible. I wanted to build the library as they suggest, just open *.sln file (from VS10, which was upgraded by my VS15) and build the project, I changed platform toolset to clang, but it didn't work. I can build it with visual c++ compiler, but with clang I get that error: 


1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Clang.targets(206,5): error : Element <DebugInformationFormat> has an invalid value of "OldStyle".


How would I build the library with clang?

Thanks.

推荐答案

你好。



我正在学习sdl,我正在使用Visual Studio 2015更新1.最近我转向clang编译器,现在sdl当然不兼容。我想按照他们的建议构建库,只需打开* .sln文件(来自VS10,由我的VS15升级)并构建
项目,我将平台工具集更改为clang,但它不起作用。我可以使用visual c ++编译器构建它,但是有了clang我就会收到错误: 



$
1> C:\Program Files(x86)\ MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Clang.targets(206,5):error:Element< DebugInformationFormat>具有无效的"OldStyle"值。



$
如何使用clang构建库?



谢谢。

Hello.

I'm learning sdl and I'm using Visual Studio 2015 update 1. Recently I've move to clang compiler and now sdl is of course not compatible. I wanted to build the library as they suggest, just open *.sln file (from VS10, which was upgraded by my VS15) and build the project, I changed platform toolset to clang, but it didn't work. I can build it with visual c++ compiler, but with clang I get that error: 


1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Clang.targets(206,5): error : Element <DebugInformationFormat> has an invalid value of "OldStyle".


How would I build the library with clang?

Thanks.

是的,这也发生在我身上。在我的情况下,我只是想使用Clang编译我的代码作为代码合规性的测试,所以我只是去了项目设置 - > C / C ++ General并将调试信息格式更改为无。

Yes, this happened to me also. In my case I just wanted to compile my code using Clang as a test of code compliance, so I just went to Project Settings->C/C++ General and changed Debug Information Format to None.


这篇关于用clang构建sdl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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