Bufferport compile error

Hi,

I just upgraded to rtt-trunk. My program which uses bufferports
now fails to compile and produces:

/home/diederikv/apps/time_optimal_wacom/src/nAxesPathInterpolator.cpp: In
constructor `OCL::nAxesPathInterpolator::nAxesPathInterpolator(std::string,
int, int, int, double, double)':
/usr/local/orocos/include/rtt/BufferPort.hpp:566: error:
`RTT::BufferPortBase&
RTT::BufferPortBase::operator=(RTT::BufferInterface*) [with T =
std::vector >]' is inaccessible
/home/diederikv/apps/time_optimal_wacom/src/nAxesPathInterpolator.cpp:39:
error: within this context

nAxesPathInterpolator.cpp (using namespace RTT, includes
and ) contains on line 39:

_joint_path = new BufferLockFree,
BlockingPolicy>(buffer_length);

nAxesPathInterpolator.hpp
declares _joint_path as:

RTT::ReadBufferPort< std::vector > _joint_path;

Anyone knows what to do about this?
Thanks!

Best regards,

Diederik

Bufferport compile error

On Thursday 21 August 2008 13:04:03 Diederik Verscheure wrote:
> Hi,
>
> I just upgraded to rtt-trunk. My program which uses bufferports
> now fails to compile and produces:
>
>
> /home/diederikv/apps/time_optimal_wacom/src/nAxesPathInterpolator.cpp: In
> constructor `OCL::nAxesPathInterpolator::nAxesPathInterpolator(std::string,
> int, int, int, double, double)':
> /usr/local/orocos/include/rtt/BufferPort.hpp:566: error:
> `RTT::BufferPortBase&
> RTT::BufferPortBase::operator=(RTT::BufferInterface*) [with T =
> std::vector >]' is inaccessible
> /home/diederikv/apps/time_optimal_wacom/src/nAxesPathInterpolator.cpp:39:
> error: within this context

Strange, I can not reproduce this. Which compiler are you using ?
I've made a small change to BufferPort.hpp, could you update and try that
version ?

Peter

>
> nAxesPathInterpolator.cpp (using namespace RTT, includes
> and ) contains on line 39:
>
> _joint_path = new BufferLockFree,
> BlockingPolicy>(buffer_length);
>
> nAxesPathInterpolator.hpp
> declares _joint_path as:
>
> RTT::ReadBufferPort< std::vector > _joint_path;
>
> Anyone knows what to do about this?
> Thanks!
>
> Best regards,
>
> Diederik
>
> --
> Diederik Verscheure
> Katholieke Universiteit Leuven
> Departement Werktuigkunde
> Afdeling Productietechnieken, Machinebouw en Automatisering (PMA)
> Celestijnenlaan 300B
> B-3001 Heverlee
> Belgium
>
> Tel: +32 16 322773
> Email: diederik [dot] verscheure [..] ...

Bufferport compile error

On Friday 22 August 2008 13:38:14 Peter Soetens wrote:
> On Thursday 21 August 2008 13:04:03 Diederik Verscheure wrote:
> > /home/diederikv/apps/time_optimal_wacom/src/nAxesPathInterpolator.cpp: In
> > constructor
> > `OCL::nAxesPathInterpolator::nAxesPathInterpolator(std::string, int, int,
> > int, double, double)':
> > /usr/local/orocos/include/rtt/BufferPort.hpp:566: error:
> > `RTT::BufferPortBase&
> > RTT::BufferPortBase::operator=(RTT::BufferInterface*) [with T =
> > std::vector >]' is inaccessible
> > /home/diederikv/apps/time_optimal_wacom/src/nAxesPathInterpolator.cpp:39:
> > error: within this context
>
> Strange, I can not reproduce this. Which compiler are you using ?

gcc (GCC) 3.4.6 (Ubuntu 3.4.6-6ubuntu2)

> I've made a small change to BufferPort.hpp, could you update and try that
> version ?

I did. It compiles fine now. Thanks!

Best regards,
Diederik

>
> Peter
>
> > nAxesPathInterpolator.cpp (using namespace RTT, includes
> > and ) contains on line 39:
> >
> > _joint_path = new BufferLockFree,
> > BlockingPolicy>(buffer_length);
> >
> > nAxesPathInterpolator.hpp
> > declares _joint_path as:
> >
> > RTT::ReadBufferPort< std::vector > _joint_path;
> >
> > Anyone knows what to do about this?
> > Thanks!
> >
> > Best regards,
> >
> > Diederik
> >
> > --
> > Diederik Verscheure
> > Katholieke Universiteit Leuven
> > Departement Werktuigkunde
> > Afdeling Productietechnieken, Machinebouw en Automatisering (PMA)
> > Celestijnenlaan 300B
> > B-3001 Heverlee
> > Belgium
> >
> > Tel: +32 16 322773
> > Email: diederik [dot] verscheure [..] ...
>
> --
> Peter Soetens -- FMTC --

Met vriendelijke groeten,

Diederik

[OT] Bufferport compile error

On Fri, Aug 22, 2008 at 3:13 PM, Diederik Verscheure
<diederik [dot] verscheure [..] ...> wrote:
[...]
>> Strange, I can not reproduce this. Which compiler are you using ?
>
> gcc (GCC) 3.4.6 (Ubuntu 3.4.6-6ubuntu2)

And the reason you're using Ubuntu instead of Debian potato is?

;-P

Klaas (sorry guys, this one was to easy to score)