help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ namespaces


From: Kyle Altendorf
Subject: Re: C++ namespaces
Date: Wed, 5 Nov 2008 13:36:28 -0800

On Wed, Nov 5, 2008 at 11:53 AM, Søren Hauberg <address@hidden> wrote:
> ons, 05 11 2008 kl. 11:41 -0800, skrev Kyle Altendorf:
>> I found talk of namespaces on the archives, but there don't yet seem
>> to be any in regards to C++ access to Octave classes.  Am I missing
>> something?  Specifically, I am dealing with code which already has a
>> Matrix class and I was hoping not to have to change that just to use
>> the Octave Matrix class.  Long term I would hope to have Octave
>> replace the other (partial) library, but in the mean time I need to
>> access both.
>>
>> Thanks for any pointers,
>
> Will something like
>
> namespace octave {
> #include <octave/oct.h>
> };
>
> work for you? I'm no C++ expert, so I'm not sure of this will have
> unwanted side-effects.
>
> Søren
>
>

I can't confirm the reasons that others gave, but after reading a bit
about namespaces and trying different permutations I am still unable
to get that to work.  Looks like I'll just have to partition my Octave
using code into another file for now.  Still, thanks for the
suggestion.

-kyle



reply via email to

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