错误修复( - 视觉工作室2015年的错误?或者我的错误? - )@ World [英] !Err fixed(-- visual studio 2015 's error? Or my mistakes? --)@World

查看:80
本文介绍了错误修复( - 视觉工作室2015年的错误?或者我的错误? - )@ World的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的错误,我无法修复它。

Visual Studio 2015(C ++项目)

This is my eror and I can not fix it.
Visual Studio 2015 ( C++ project )

Error	C1189	#error:  Macro definition of snprintf conflicts with Standard Library function declaration	test_project	c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\stdio.h	1927	


Severity	Code	Description	Project	File	Line	Suppression State
Error	C2084	function 'int _snprintf(char *const ,const std::size_t,const char *const ,...)' already has a body	test_project	c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\stdio.h	1955	


8>c:\program files (x86)\microsoft visual studio 14.0\vc\include\cmath(251): error C2059: syntax error: '::'

8>c:\program files (x86)\microsoft visual studio 14.0\vc\include\cmath(32): error C2589: '(': illegal token on right side of '::'

Severity	Code	Description	Project	File	Line	Suppression State
Error	C2059	syntax error: '::'	z_libutils_gui_windows	c:\program files (x86)\microsoft visual studio 14.0\vc\include\cmath	67	





我尝试过:



使用VC 2015开发openGl项目



What I have tried:

develop openGl project with VC 2015

推荐答案

编译器说实话:你不能像snprintf那样定义一些宏(或函数),因为名称已经是usd在标准库中。



名称必须是唯一的才能使语言符合要求。



提示:找个伙伴更好地学习语言; - )
The compiler tell you the truth: You cant define some macro (or function) like snprintf, because the name is already usd in the standard library.

The names have to be unique to get language conform.

Tip: find a mate to learn the language better ;-)


这篇关于错误修复( - 视觉工作室2015年的错误?或者我的错误? - )@ World的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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