[LC++]C++ Callback Problems

Charles Randle charlesrandle at hotmail.com
Fri Aug 30 02:36:05 UTC 2002


Hi All ,

I have attached the following two files : "callback.hpp" and "cbtest.cpp"
The first is a source file which attempts at implementing callback in C++ 
and the second is a test file.
Whenever I compile the test file I get the following error :

make -k cbtest
g++     cbtest.cpp   -o cbtest
cbtest.cpp: In function `int main(int, const char* const*)':
cbtest.cpp:20: no matching function for call to `xgx_support::gx_callback::
   make_M2(A&, void (A::*)())'
callback.hpp:182: candidates are: static xgx_support::gx_callback
   xgx_support::gx_callback::make_M2(CLIENT&, CLIENTMEMBER&) [with CLIENT = 
A,
   CLIENTMEMBER = void (A::*)()]
make: *** [cbtest] Error 1

Compilation exited abnormally with code 2 at Thu Aug 29 11:18:48


Can anyone tell me what I am doing wrong ?
Using GNU gcc version 3.2

Looking forward to your responses.

Best Regards,
Charles Randle


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx
-------------- next part --------------
A non-text attachment was scrubbed...
Name: callback.hpp
Type: application/octet-stream
Size: 6403 bytes
Desc: not available
Url : http://lists.linux.org.au/pipermail/tuxcpprogramming/attachments/20020830/dbb7acd1/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cbtest.cpp
Type: application/octet-stream
Size: 722 bytes
Desc: not available
Url : http://lists.linux.org.au/pipermail/tuxcpprogramming/attachments/20020830/dbb7acd1/attachment-0001.obj 


More information about the tuxCPProgramming mailing list