[sigc] Newbie really basic question
- From: Leandro Fanzone <leandro hasar com>
- To: libsigc-list gnome org
- Subject: [sigc] Newbie really basic question
- Date: Mon, 14 Mar 2005 16:18:23 -0300
Hello, I'm using libsigc++ 2.0 (2.0.10, the one that's being distributed
with Cedric's win32 binaries for gtkmm 2.6), and I'm trying to use it
standalone. The following example:
#include <sigc++/sigc++.h>
void A()
{
printf("A signaled\n");
}
int main(int argc, char *argv[])
{
sigc::signal<void> signal_a;
signal_a.connect(sigc::ptr_fun(A));
signal_a.emit();
return 0;
}
doesn't produce the expected "A signaled" message. Am I missing
something obvious? I'm using gcc 3.3.1 under cygwin. Thank you in
advance, and apologies if this is a terribly silly question...
Leandro.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]