Re: Spam ? - [gtkmm] seg fault



I just would to put a little note on your code...

Neeraj Korde wrote:

well i can't find the bug here... its a simple constructor...
//main.cc/////////////////////////////////////////////////////////////
#include <gtkmm/main.h>
#include "examplewindow.h"

int main(int argc, char *argv[])
{
 Gtk::Main kit(argc, argv);

try to replace this with

Gtk::Main kit(&argc, &argv);


 ExampleWindow window;
 Gtk::Main::run(window); //Shows the window and returns when it is
closed.

 return 0;
}





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