help-octave
[Top][All Lists]
Advanced

[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


From: Mike Miller
Subject: Re: Why do I get ov-base.h:165:3: error: expected constructor, destructor ?
Date: Thu, 8 Dec 2016 14:43:45 -0800
User-agent: NeoMutt/20161104 (1.7.1)

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.

> C:\Octave\Octave-4.0.3\include\octave-4.0.3\octave\../octave/ov-base.h:165:3:
> 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'
>  DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_gpib, "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
dark.

A stab in the dark: it may be something that came before the macro, like
a missing semicolon or end brace.

-- 
mike



reply via email to

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