Menu

#335 Util.cc:197:64: error

0.70.x
open
nobody
5
2011-03-24
2011-03-24
Viktor dtn
No

While compiling blackbox from source on opensuse 11.4 with kenel sources, syms, gcc/++ installed encountered the following error.

"Util.cc:197:64: error: 'std::string bt::textPropertyToString(Display*, XTextProperty&)' should have been declared inside 'bt"

This is encountered when I run make.
The following are the two opensuse form posts that was done.,
http://forums.opensuse.org/forums/english/get-technical-help-here/applications/399081-blackbox-installing-problem.html
http://forums.opensuse.org/forums/english/other-forums/development/programming-scripting/456560-blackbox-wm-installation-issue.html#post2310909

Discussion

  • Viktor dtn

    Viktor dtn - 2011-03-24

    One of the form updates provided by an opensuse expert is to
    run sed -i -e "s/_XUTIL_H_/_X11&/" lib/Util.hh to replace _XUTIL_H_ with _X11& in the file lib/Util.hh

    Am going to try this and will update.

     
  • Petr Písař

    Petr Písař - 2012-01-19

    Including <X11/Xutil.h> and removing the _XUTIL_H_ condition fixes it:

    --- blackbox-0.70.1/lib/Util.hh.Xutil 2005-04-06 15:01:18.000000000 +0100
    +++ blackbox-0.70.1/lib/Util.hh 2011-03-26 00:39:30.468690153 +0000
    @@ -25,6 +25,7 @@
    #ifndef __Util_hh
    #define __Util_hh

    +#include <X11/Xutil.h>
    #include <limits.h>
    #include <string>

    @@ -94,10 +95,8 @@

    std::string tolower(const std::string &string);

    -#ifdef _XUTIL_H_
    std::string textPropertyToString(::Display *display,
    ::XTextProperty& text_prop);
    -#endif

    } // namespace bt

     

Log in to post a comment.