[gdal-dev] Missing include in MSG driver

Christian Authmann authmanc at Mathematik.Uni-Marburg.de
Tue May 20 01:21:43 PDT 2014


Hello,

I tried to compile GDAL 1.11.0 with the meteosat 2 (MSG) driver, but 
compilation failed in

frmts/msg/msgcommand.cpp

with a message stating that sprintf() was unknown. Adding

#include <cstdio>

at the top of the file fixed the problem. A trivial patch is attached; I 
release it under the license of the original file in the hopes that a 
dev will commit it.


Thanks!
-- 
Christian Authmann
Philipps-Universität Marburg
Fachbereich Mathematik und Informatik
AG Datenbanksysteme
Hans-Meerwein-Straße
D-35032 Marburg
-------------- next part --------------
--- a/frmts/msg/msgcommand.cpp	2014-04-16 22:04:48.000000000 +0200
+++ b/frmts/msg/msgcommand.cpp	2014-05-19 17:00:51.322992001 +0200
@@ -29,6 +29,7 @@
 
 #include "msgcommand.h"
 #include <cstdlib>
+#include <cstdio>
 using namespace std;
 
 #ifdef _WIN32


More information about the gdal-dev mailing list