-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile error in exemple 6 #230
Comments
Any updates on this issue? Got these errors:
|
In the method:
You need to change:
to:
As you could notice checking the abstract class. |
I have changed the code as you suggested but this caused even more errors now. |
The correct prototype for the method is:
Be sure to use the latest VMime code from the Git repository. Method takes a |
(note I have renamed exampl6.cpp inmain.cpp)
../main.cpp:315:72: required from here
/usr/include/c++/8/ext/new_allocator.h:136:4: error: invalid new-expression of abstract class type ‘myTracerFactory’
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../main.cpp:34:
../example6_tracer.hpp:39:7: note: because the following virtual functions are pure within ‘myTracerFactory’:
class myTracerFactory : public vmime::net::tracerFactory {
^~~~~~~~~~~~~~~
In file included from /usr/include/vmime/net/socket.hpp:37,
from /usr/include/vmime/platform.hpp:34,
from /usr/include/vmime/vmime.hpp:34,
from ../main.cpp:31:
/usr/include/vmime/net/tracer.hpp:99:30: note: ‘virtual std::shared_ptrvmime::net::tracer vmime::net::tracerFactory::create(std::shared_ptrvmime::net::service, int)’
virtual shared_ptr create(shared_ptr serv, const int connectionId) = 0;
^~~~~~
The text was updated successfully, but these errors were encountered: