Compilation error in bufferstreamdrive.cc
If you configure MBDyn without netcdf, you get the following error:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include -I./../../include -I./../../libraries/libmbc -I./../../libraries/libmbutil -I./../../libraries/libmbmath -I./../../libraries/libmbwrap -I./../../libraries/libann -I./../../mbdyn -I./../../mbdyn/base -I./../../mbdyn/struct -I./../../mbdyn/aero -I./../../mbdyn/elec -I./../../mbdyn/thermo -I./../../mbdyn/hydr -I./../../modules -I/usr/include/octave-5.2.0/octave/.. -I/usr/include/octave-5.2.0/octave -I/usr/include/suitesparse -Ofast -Wall -march=native -march=native -mtune=native -pthread -MT bufferstreamdrive.lo -MD -MP -MF .deps/bufferstreamdrive.Tpo -c bufferstreamdrive.cc -fPIC -DPIC -o .libs/bufferstreamdrive.o In file included from drive.h:49, from tpldrive.h:35, from rbk.h:38, from reffrm.h:44, from mbpar.h:110, from dataman.h:47, from bufferstream_out_elem.cc:40: output.h: In member function ‘void OutputHandler::IncCurrentStep()’: output.h:171:3: error: ‘ncStart1’ was not declared in this scope 171 | ncStart1[0] = this->GetCurrentStep(); | ^~~~~~~~ In file included from drive.h:49, from tpldrive.h:35, from rbk.h:38, from reffrm.h:44, from mbpar.h:110, from dataman.h:47, from auth.cc:39: output.h: In member function ‘void OutputHandler::IncCurrentStep()’: output.h:171:3: error: ‘ncStart1’ was not declared in this scope 171 | ncStart1[0] = this->GetCurrentStep(); | ^~~~~~~~ In file included from drive.h:49, from tpldrive.h:35, from rbk.h:38, from reffrm.h:44, from mbpar.h:110, from dataman.h:47, from solver.h:59, from bicg.cc:46: output.h: In member function ‘void OutputHandler::IncCurrentStep()’: output.h:171:3: error: ‘ncStart1’ was not declared in this scope 171 | ncStart1[0] = this->GetCurrentStep(); | ^~~~~~~~ In file included from drive.h:49, from tpldrive.h:35, from rbk.h:38, from reffrm.h:44, from mbpar.h:110, from dataman.h:47, from bufferstreamdrive.cc:36: output.h: In member function ‘void OutputHandler::IncCurrentStep()’: output.h:171:3: error: ‘ncStart1’ was not declared in this scope 171 | ncStart1[0] = this->GetCurrentStep(); | ^~~~~~~~ make[2]: *** [Makefile:917: bufferstream_out_elem.lo] Error 1