Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error 4 error C3861: 'snprintf': identifier not found

i am running a program on win 7 via visual studio 2008

and i am getting this error:

Error 4 error C3861: 'snprintf': identifier not found

i have included stdio header...

i don't know what else it can be missing

like image 705
user690936 Avatar asked Jan 29 '12 09:01

user690936


1 Answers

Looks like on Windows, the function is prefixed with a _. Also, the function is deprecated in favour of a safer one:

http://msdn.microsoft.com/en-us/library/2ts7cx93(v=vs.80).aspx

like image 103
Corbin Avatar answered Nov 11 '22 14:11

Corbin