[Bug 757] New: invalid application of ‘sizeof’

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=757

Summary: invalid application of ‘sizeof’
Product: RTT
Version: 1.10.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: Real-Time Toolkit (RTT)
AssignedTo: orocos-dev [..] ...
ReportedBy: dominick [dot] vanthienen [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

Hi

I tried to make the HelloWorld example no. 4 of RTT.
Then I recieved this error:

/home/u0065688/src/svn/robotics-ros/packages/orocos/exercises/hello-4-methods/src/HelloWorld.cpp:92:
instantiated from here

/home/u0065688/src/svn/robotics-ros/packages/orocos/rtt/rtt-1.10/rtt/include/rtt/MethodRepository.hpp:175:
error: invalid application of ‘sizeof’ to incomplete type
‘boost::STATIC_ASSERTION_FAILURE<false>’

/home/u0065688/src/svn/robotics-ros/packages/orocos/exercises/hello-4-methods/src/HelloWorld.cpp:92:
instantiated from here

/home/u0065688/src/svn/robotics-ros/packages/orocos/rtt/rtt-1.10/rtt/include/rtt/MethodRepository.hpp:175:
error: invalid application of ‘sizeof’ to incomplete type
‘boost::STATIC_ASSERTION_FAILURE<false>’
make[3]: *** [CMakeFiles/hello4.dir/src/HelloWorld.o] Error 1

I use RTT- 1.10 with boost 1.38
Can anyone help me out?

thanx!

nick

--
Configure bugmail: https://www.fmtc.be/bugzilla/orocos/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
--
Orocos-Dev mailing list
Orocos-Dev [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev

[Bug 757] invalid application of ‘sizeof’

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=757

Peter Soetens <peter [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution| |INVALID
Status|NEW |RESOLVED

--- Comment #1 from Peter Soetens <peter [..] ...> 2010-02-22 12:01:19 ---
This is a check that indicates you provided the wrong number of arguments to
addMethod, possibly missing a descriptive argument (see Doxygen). Yes, it's
ugly.

2.0 does not suffer from this.

Peter

[Bug 757] New: invalid application of ‘sizeof’

On Feb 17, 2010, at 04:10 , nick vanthienen wrote:

> https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=757
>
> Summary: invalid application of ‘sizeof’
> Product: RTT
> Version: 1.10.0
> Platform: All
> OS/Version: All
> Status: NEW
> Severity: normal
> Priority: P3
> Component: Real-Time Toolkit (RTT)
> AssignedTo: orocos-dev [..] ...
> ReportedBy: dominick [dot] vanthienen [..] ...
> CC: orocos-dev [..] ...
> Estimated Hours: 0.0
>
>
> Hi
>
> I tried to make the HelloWorld example no. 4 of RTT.
> Then I recieved this error:
>
> /home/u0065688/src/svn/robotics-ros/packages/orocos/exercises/hello-4-methods/src/HelloWorld.cpp:92:
> instantiated from here
>
> /home/u0065688/src/svn/robotics-ros/packages/orocos/rtt/rtt-1.10/rtt/include/rtt/MethodRepository.hpp:175:
> error: invalid application of ‘sizeof’ to incomplete type
> ‘boost::STATIC_ASSERTION_FAILURE<false>’
>
> /home/u0065688/src/svn/robotics-ros/packages/orocos/exercises/hello-4-methods/src/HelloWorld.cpp:92:
> instantiated from here
>
> /home/u0065688/src/svn/robotics-ros/packages/orocos/rtt/rtt-1.10/rtt/include/rtt/MethodRepository.hpp:175:
> error: invalid application of ‘sizeof’ to incomplete type
> ‘boost::STATIC_ASSERTION_FAILURE<false>’
> make[3]: *** [CMakeFiles/hello4.dir/src/HelloWorld.o] Error 1
>
> I use RTT- 1.10 with boost 1.38
> Can anyone help me out?
>
> thanx!
>
> nick

I find these are usually due to missing parameters when adding methods, etc. So something like (written of the top of my head)

methods()->addMethod(&myMethod, "My description")

should actually be

methods()->addMethod(&myMethod, "My description", "param1", "First parameter")

HTH
Stephen