Re: signals on mingw
- From: "sebastien.charlois" <sebastien charlois ext actia fr>
- To: gtkmm-list gnome org
- Subject: Re: signals on mingw
- Date: Wed, 22 Jun 2005 09:21:34 +0200
Solved.
I used gcc 3.3.1.
And with gcc 3.4.2 it works well.
Hello,
I use mingw compiler on a win32-XP OS and gtkmm-2.6.
I can´t get the custom signal example (examples/book/signals/custom/) to
work correctly.
The main function is :
int main(int, char**)
{
Server server;
Client client;
//Connect a Server signal to the signal handler in Client.
server.signal_something().connect( sigc::mem_fun(client,
&Client::on_server_something) );
std::cout << "Before Server::do_something()" << std::endl;
//Tell the server to do something that will eventually cause it to
emit the "something" signal.
server.do_something(); //Client::on_server_something() will run before
Server::do_something() has completed.
std::cout << "After Server::do_something()" << std::endl;
return 0;
}
Server::do_something() calls the 'emit' method on the Server::signal.
The problem is, the 'on_server_something' method doesn't seems to be
called. That method should display a message on stdout.
What's wrong with this example ? Did I forget something ?
Thanks in advance for any Help.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]