c++ question: no matching function call
- From: jeff <jeff hype52 com>
- To: gtk-app-devel-list gnome org
- Subject: c++ question: no matching function call
- Date: Thu, 8 Aug 2002 12:00:27 +0000
hi all, i have something like this
abc.h:
class abc {
public:
abc (GtkWidget *mywidget);
// destructor etc
somefunction (char *something);
}
abc.cc
#include "abc.h"
// constructor destructor etc etc
abc::somefunction (char *something)
{
//stuff
}
main.cc
#include "abc.h"
//... then in a function or somethin
abc *mystuff = new abc;
mystuff->somefunction("sometext");
delete mystuff;
and i get:
main.cc:73: no matching function for call to `abc::somefunction (char *&)'
note the function names and what not have been changed to protect the innocent...err just typed this up from
my head just to show the relevant parts...
thx
-j
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]