Even if I put #include <cstring> in Buffer.h I still get the same error
>>> "Martin Dobias" <[EMAIL PROTECTED]> 2/5/08 5:12 PM >>> On Feb 6, 2008 12:00 AM, Mikhail Umorin <[EMAIL PROTECTED]> wrote: > and if I add suggested includes (cstring and limits) to Buffer.cc then > I get: > > [ 22%] Building CXX object > src/core/CMakeFiles/qgis_core.dir/spatialindex/storagemanager/Buffer.o > In file included from > /usr/lib/gcc/x86_64-mandriva-linux-gnu/4.3/../../../../include/c++/4.3/cstring:49, > from > /var/Archives/qgis_0.9.1/src/core/spatialindex/storagemanager/Buffer.cc:24: > /usr/include/string.h:302: error: variable or field 'memset' > declared void > /usr/include/string.h:302: error: expected primary-expression before > 'void' > /usr/include/string.h:302: error: expected `)' before 'void' > make[2]: *** > [src/core/CMakeFiles/qgis_core.dir/spatialindex/storagemanager/Buffer.o] > Error 1 > make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2 > make: *** [all] Error 2 > [EMAIL PROTECTED] build]$ > > > So, what should I do now? I suggest putting #include <cstring> to Buffer.h instead of putting it to Buffer.c since it's being used also in the header file. Hope that helps, Martin _______________________________________________ Qgis-user mailing list [email protected] http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
