[Qgis-user] Compile error in qgsvectordataprovider.cpp
Mikhail.Umorin at twdb.state.tx.us
Tue Feb 5 18:40:16 EST 2008
Even if I put #include <cstring> in Buffer.h I still get the same error
>>> "Martin Dobias" <wonder.sk at gmail.com> 2/5/08 5:12 PM >>>
On Feb 6, 2008 12:00 AM, Mikhail Umorin <Mikhail.Umorin at twdb.state.tx.us> wrote:
> and if I add suggested includes (cstring and limits) to Buffer.cc then
> I get:
> [ 22%] Building CXX object
> In file included from
> /usr/include/string.h:302: error: variable or field 'memset'
> declared void
> /usr/include/string.h:302: error: expected primary-expression before
> /usr/include/string.h:302: error: expected `)' before 'void'
> make: ***
> Error 1
> make: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2
> make: *** [all] Error 2
> [mike at localhost 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,
More information about the Qgis-user