help-gnucap
[Top][All Lists]
Advanced

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

[Help-gnucap] slight change in custom FUNCTION instanciation


From: romain . gailleton
Subject: [Help-gnucap] slight change in custom FUNCTION instanciation
Date: Tue, 22 Jan 2013 10:20:08 +0100
User-agent: Roundcube Webmail/0.8.4

just so you know i've done this :

...
...
...
protected:
  WAVE* find_wave(const std::string& probe_name)const;
};
ABAS pa;
DISPATCHER<FUNCTION>::INSTALL d(&function_dispatcher, abc, &pa);

instead of :

...
...
...
protected:
  WAVE* find_wave(const std::string& probe_name)const;
}pa;
DISPATCHER<FUNCTION>::INSTALL d(&function_dispatcher, abc, &pa);

and i get new warnings/errors :

PATH\u_function.h:30: warning: 'class FUNCTION' has virtual functions and accessible non-virtual destructor PATH\fake_function.cpp:12: warning: 'class ABAS' has virtual functions and accessible non-virtual destructor
PATH\fake_function.cpp:14: warning: unused parameter 'Cmd'

In file included from PATH\globals.h:24,
                 from PATH\fake_function.cpp:6:
PATH\l_dispatcher.h: In instantiation of 'DISPATCHER<FUNCTION>::INSTALL':
PATH\fake_function.cpp:23:   instantiated from here
PATH\l_dispatcher.h:171: warning: 'class DISPATCHER<FUNCTION>::INSTALL' has pointer data members PATH\l_dispatcher.h:171: warning: but does not override 'DISPATCHER<FUNCTION>::INSTALL(const DISPATCHER<FUNCTION>::INSTALL&)' PATH\l_dispatcher.h:171: warning: or 'operator=(const DISPATCHER<FUNCTION>::INSTALL&)'

does it make sens to you ? if yes would you be able to explain this to me ?
u sure i have to use this install ?

and still have :

Linking dynamic library: bin\Release\tb.dll
obj\Release\fake_function.o:fake_function.cpp:(.text+0x32c): undefined reference to `function_dispatcher' obj\Release\fake_function.o:fake_function.cpp:(.text+0x369): undefined reference to `function_dispatcher' obj\Release\fake_function.o:fake_function.cpp:(.text+0x429): undefined reference to `function_dispatcher' obj\Release\fake_function.o:fake_function.cpp:(.text+0x57f): undefined reference to `error(int, std::string const&)'
...
...
...

Thanks :)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]