I am having a big piece of software that I am developing on Linux and Windows+MinGW. The code was compiling fine on Windows until a few hours ago when I got the following error. (It still compiles fine on Linux)
When I include <cstdio> in my files g++ complains that ::snprintf and ::vsnprintf are not declared.
From google I know that this has something to do with mixing c and c++ headers. A suggested solution is to use <stdio.h> which is not possible in my case as I am using <fstream> which includes <cstdio>. Are there any other solutions to fix this problem?
I am puzzled because I did just some changes in my classes and did not change the includes :-(