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

nhugent at hispeed.ch nhugent at hispeed.ch
Thu Apr 6 08:22:47 EDT 2006


Hi Tim,

Sorry for the inconvenience and thanks for the fix.

Marco

>Hi
>
>This is fixed as of r5181
>
>Regards
>
>Tim
>
>On 4/5/06, Tim Sutton <tim at linfiniti.com> wrote:
>> 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
>>
>
>
>--
>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
>_______________________________________________
>Qgis-developer mailing list
>Qgis-developer at lists.qgis.org
>http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
>
>



More information about the Qgis-developer mailing list