[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why do I get ov-base.h:165:3: error: expected constructor, destructo
Re: Why do I get ov-base.h:165:3: error: expected constructor, destructor ?
Thu, 8 Dec 2016 14:43:45 -0800
On Tue, Dec 06, 2016 at 06:43:00 -0800, ndarkness wrote:
> I am compiling a class (in octave 4.0.3) that should allow me to work with
> some device through visa and I run into this error on /ov-base.h/, does
> anyone know what I am missing?
> />> system('sh')
> sh-3.1$ make
> mkoctfile -c -DBUILD_GPIB gpib_class.cc
You should probably use mkoctfile-4.0.3 here, or better yet just call
mkoctfile from within Octave, there is no need to run a shell.
> error: expected constructor, destructor, or type conversion before 'int'
> int t::t_id (-1); \
> gpib_class.cc:49:1: note: in expansion of macro
> DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_gpib, "octave_gpib",
I don't know and I can't reproduce this. If you can provide the full
source to your project, maybe someone can help more than stabbing in the
A stab in the dark: it may be something that came before the macro, like
a missing semicolon or end brace.