Gtk::MessageDialog



I am trying to create a gui interface for my Exception class, but I am getting some errors from GTKmm library, this is the error message:

1>------ Build started: Project: vsSamiira, Configuration: Debug Win32 ------
1>  vsApp.cpp
1>  uiexception.cpp
1>d:\gtkmm\include\pango-1.0\pango\pango-utils.h(34): error C2065: 'stream' : undeclared identifier
1>d:\gtkmm\include\pango-1.0\pango\pango-utils.h(35): error C2065: 'str' : undeclared identifier
1>d:\gtkmm\include\pango-1.0\pango\pango-utils.h(35): error C2275: 'GString' : illegal use of this type as an _expression_
1>          d:\gtkmm\include\glib-2.0\glib\gstring.h(40) : see declaration of 'GString'
1>d:\gtkmm\include\pango-1.0\pango\pango-utils.h(35): error C2078: too many initializers
1>  exception.cpp
1>  Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


And this is the code:

uiexception.hpp
~~~~~~~~~~~~~~~~
#ifndef UIEXCEPTION_HPP
#define UIEXCEPTION_HPP

#include "../../exception/exception.hpp"
#include <gtkmm/messagedialog.h> //<-- remove

namespace ns{
 class uiexception : virtual public Exception{
 public:
  uiexception();
  virtual ~uiexception()throw(){}
 private:
  Gtk::MessageDialog* dialog; //<-- remove
 };
}

#endif
--------------------------

uiexception.cpp
~~~~~~~~~~~~~~~
#ifndef UIEXCEPTION_HPP
#include "uiexception.hpp"
#endif

ns::uiexception::uiexception(){
 dialog = Gtk::manage(new Gtk::MessageDialog(
 " message",           //Message
 false,                // Markup
 Gtk::MESSAGE_WARNING, //MessageType
 Gtk::BUTTONS_OK,      //Buttons
 false));               //modal
}

removing the lines marked "<-- remove" in the header file takes care of the problem.

what could be causing this error messages?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]