[Qgis-developer] Re: Trunk build error: qgsrasterlayer.cpp:952: error: 'QgsDebugMsgLevel' was not declared in this scope

Tim Sutton tim at linfiniti.com
Wed Apr 5 18:52:03 EDT 2006


Hi again

After some debugging discovered the error comes from qgslogger.h here:

#ifdef QGISDEBUG
#define QgsDebugMsg(str) QgsLogger::debug(QString(str), 1, __FILE__,
__FUNCTION__, __LINE__);
#define QgsDebugMsgLevel(str, level) QgsLogger::debug(QString(str), level,\
__FILE__, __FUNCTION__, __LINE__);
#else
#define QgsDebugMsg(str)
#define QgsDebugMsgVal(str, val, level)
#endif


By this logic if qgis is defined without debug support (as mine was)
then QgsDebugMsgLevel is never defined and consequently the message
below.  What is curious is the fact that qgsspatialrefsys.cpp uses the
same function and doesnt give an error...so Im a  little confused....

Tim



On 4/5/06, Tim Sutton <tim at linfiniti.com> wrote:
> Hi
>
> SVN trunk build fails with:
>
> qgsrasterlayer.cpp: In member function 'bool
> QgsRasterLayer::hasBand(const QString&)':
> qgsrasterlayer.cpp:952: error: 'QgsDebugMsgLevel' was not declared in this scope
> make[3]: *** [libqgis_raster_la-qgsrasterlayer.lo] Error 1
> make[3]: Leaving directory `/home/aps02ts/dev/cpp/qgis/src/raster'
> make[2]: *** [install] Error 2
> make[2]: Leaving directory `/home/aps02ts/dev/cpp/qgis/src/raster'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/home/aps02ts/dev/cpp/qgis/src'
> make: *** [install-recursive] Error 1
>
>
>
> Regards
>
> --
> Tim Sutton
>
> Visit http://qgis.org for a great Open Source GIS
> Skype: timlinux
> MSN: tim_bdworld at msn.com
> Yahoo: tim_bdworld at yahoo.com
> Jabber: timlinux
> Irc: timlinux on #qgis at freenode.net
>


--
Tim Sutton

Visit http://qgis.org for a great Open Source GIS
Skype: timlinux
MSN: tim_bdworld at msn.com
Yahoo: tim_bdworld at yahoo.com
Jabber: timlinux
Irc: timlinux on #qgis at freenode.net



More information about the Qgis-developer mailing list