[MBDyn-users] Error log - communication module - GSoc

Kshitij Goel kshitijgoel16061995 at gmail.com
Fri Apr 8 18:02:28 CEST 2016


I've made my module and currently I have these errors :

/usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file
requires compiler and library support for the ISO C++ 2011 standard. This
support is currently experimental, and must be enabled with the -std=c++11
or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
module-gsoc-kshitij-goel.cc: In constructor
'KeyboardDrive::KeyboardDrive(unsigned int, const DriveHandler*, const
module-gsoc-kshitij-goel.cc:45:13: error: no matching function for call to
'FileDrive::FileDrive(unsigned int&, const DriveHandler*&, const string&)'
module-gsoc-kshitij-goel.cc:45:13: note: candidates are:
In file included from module-gsoc-kshitij-goel.cc:23:0:
../../mbdyn/base/filedrv.h:49:2: note: FileDrive::FileDrive(unsigned int,
const DriveHandler*, const string&, integer, const std::vector<double>&)
  FileDrive(unsigned int uL, const DriveHandler* pDH,
../../mbdyn/base/filedrv.h:49:2: note:   candidate expects 5 arguments, 3
../../mbdyn/base/filedrv.h:42:7: note: FileDrive::FileDrive(const
 class FileDrive : public Drive {
../../mbdyn/base/filedrv.h:42:7: note:   candidate expects 1 argument, 3
module-gsoc-kshitij-goel.cc: In member function 'virtual Drive*
KeyboardDR::Read(unsigned int, const DataManager*, MBDynParser&)':
module-gsoc-kshitij-goel.cc:123:63: error: cannot allocate an object of
abstract type 'KeyboardDrive'
  return new KeyboardDrive(uLabel, pDM->pGetDrvHdl(), sFileName);
module-gsoc-kshitij-goel.cc:25:7: note:   because the following virtual
functions are pure within 'KeyboardDrive':
 class KeyboardDrive : public FileDrive {
In file included from module-gsoc-kshitij-goel.cc:23:0:
../../mbdyn/base/filedrv.h:57:24: note: virtual std::ostream&
FileDrive::Restart(std::ostream&) const
  virtual std::ostream& Restart(std::ostream& out) const = 0;
In file included from ../../mbdyn/base/tpldrive.h:35:0,
                 from ../../mbdyn/base/rbk.h:38,
                 from ../../mbdyn/base/reffrm.h:44,
                 from ../../mbdyn/base/mbpar.h:110,
                 from ../../mbdyn/base/dataman.h:47,
                 from module-gsoc-kshitij-goel.cc:22:
../../mbdyn/base/drive.h:121:15: note: virtual void
Drive::ServePending(const doublereal&)
  virtual void ServePending(const doublereal& t) = 0;
make[2]: *** [module-gsoc-kshitij-goel.lo] Error 1

1. I have implemented it upon module-hid. It inherits FileDrive from
filedrv.h. I'm not able to understand what is meant by the following
variables in module-hid.cc :

integer m_nButtons;
std::vector<doublereal> m_lc_scale;
integer m_nLC;

These were being passed into FileDrive.

2. Basically, I have tried to implement Output stream : 77, taking Keyboard
as an input device.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mbdyn.org/pipermail/mbdyn-users/attachments/20160408/4aabf97d/attachment.html>

More information about the MBDyn-users mailing list