Hello all;
I rather new in using CS, but we're on an project that will use it's libraries.
But I have an problem. I'm not a experienced programmer in C++, my experience resumes in C (so, no Object Oriented...

). And I having this function slowing my progress in development, so i would reaaly appreciate some help.
here is the function call and definitions:
bool ERD::EventHandler (iEvent& ev)
{
return event->HandleEvent(ev);
}
/* Initialize */
bool ERD::Initialize ()
{
event = new Event();
// Initialize Event Handler
if (!csInitializer::SetupEventHandler(object_reg, erd->EventHandler))
{
csReport(object_reg, CS_REPORTER_SEVERITY_ERROR,
"Estrada Real Digital",
"Erro ao inicializar o Event Handler!");
return false;
}
bool Event::HandleEvent(iEvent &ev)
And the makefile output:
sisifo:~/csApp/erd/teste->make
g++ -I/crystalspace/CS/include -o teste.o -c teste.cpp
teste.cpp: In member function `bool ERD::Initialize()':
teste.cpp:160: error: no matching function for call to `csInitializer::SetupEventHandler(iObjectRegistry*&, <unknown type>)'
/crystalspace/CS/include/cstool/initapp.h:340: note: candidates are: static bool csInitializer::SetupEventHandler(iObjectRegistry*, iEventHandler*, unsigned int)
/crystalspace/CS/include/cstool/initapp.h:360: note: static bool csInitializer::SetupEventHandler(iObjectRegistry*, bool (*)(iEvent&), unsigned int)
make: *** [teste.o] Error 1
I've already tried a lot of thigs to get this thing on, but I failed in all. If someone could lend me some help, I would be gratefull.
Thanks in advance.
P.S. - My system features:
sisifo:~->uname -a
Linux sisifo 2.6.10-1.766_FC3smp #1 SMP Wed Feb 9 23:21:37 EST 2005 i686 i686 i386 GNU/Linux
sisifo:~->gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)