Newbey Question



Jamiil Abdullah-Alkadir writes:
main.cpp:41: error: invalid conversion from 'void (*)(GtkButton*, void*)' to 

The name of the library is GTK+, not GTK++. The "+" in the name has
nothing to do with C++. (There are C++ wrappers for GTK+, but you
don't seem to be using any such.)

To reduce confusion, don't compile your C code as if it was
C++. I.e., rename your source file to main.c, and compile with gcc,
not g++.

--tml




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