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
--- 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
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to