R: TransportPlugin.cpp:39: error: invalid conversion from ‘int’ to ‘const char*’

Thank you a lot for your support.

i did update and build the I regenerate the project starting from orogen
and now it works fine.

Here below you can find data about my environment.

cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.10
DISTRIB_CODENAME=maverick
DISTRIB_DESCRIPTION="Ubuntu 10.10"

root@giampy-P5KC:~# cmake --version
cmake version 2.8.2

G. Rizzi

----Messaggio originale----
Da: peter [..] ...
Data: 22-apr-2011 9.28
A: <orocos-users [..] ...>, "gprizzi [..] ..."<gprizzi [..] ...>
Ogg: Re: [Orocos-users] TransportPlugin.cpp:39: error: invalid conversion from ‘int’ to ‘const char*’

On Thursday 21 April 2011 23:20:54 gprizzi [..] ... wrote:
> Dear sirs,
>
> After having update yesterday orocos toolchain 2.3.1 I regenerate
> my project without any modification to my defined data types and orogen
> definition file.
>
> The project was succesfully built with the old toolchain, now
> the command
>
> make install
>
> ends with errors on TransportPlugin.cpp.
>
> Here below the generated warnings and errors:
>
> /root/rock/Rosetta12A/.orogen/typekit/transports/typelib/TransportPlugin.cp
> p:39: warning: character constant too long for its type .......
>
>
> /root/rock/Rosetta12A/.orogen/typekit/transports/typelib/TransportPlugin.cp
> p: In constructor
> ‘orogen_typekits::rosettaTypelibTransportPlugin::rosettaTypelibTransportPl
> ugin()’:
> /root/rock/Rosetta12A/.orogen/typekit/transports/typelib/TransportPlugin.c
> pp:39: error: invalid conversion from ‘int’ to ‘const char*’
> /root/rock/Rosetta12A/.orogen/typekit/transports/typelib/TransportPlugin.c
> pp:39: error: initializing argument 1 of ‘std::basic_string<_CharT,
> _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&amp;amp;) [with
> _CharT = char, _Traits = std::char_traits<char>, _Alloc =
> std::allocator<char>]’ make[2]: ***
> [.orogen/typekit/transports/typelib/CMakeFiles/rosetta-transport-typelib-x
> enomai.dir/TransportPlugin.cpp.o] Error 1 make[1]: ***
> [.orogen/typekit/transports/typelib/CMakeFiles/rosetta-transport-typelib-x
> enomai.dir/all] Error 2 make: *** [all] Error 2
>
> Can you help me to get the code compiled?

This is bug #854. http://bugs.orocos.org/show_bug.cgi?id=854

For some reason, on some systems, cmake escapes quotes in the add_definitions()
macro.

Can you state your cmake version and Linux distro + version ?

I have pushed the fix that will work for you back to master+ toolchain-2.3
branch. So if you update, it will/should regenerate that typekit with the
correct code.

Peter