statechart: unable to compile examples - additional compiler flags needed?
Hello,
I'm using statechart on LINUX with gcc-3.4.2. bjam was able to compile
the examples but if I copy the StopWatch-example into a Kdevelop-project
I get errors?! I assume I've to put some additional compiler-flags which
are not mentioned in the tutorial. Could you help please!
In file included from
/opt/boost/include/boost-1_33_1/boost/statechart/simple_state.hpp:13,
from /opt/boost/include/boost-1_33_1/boost/intrusive_ptr.hpp:35,
from
/opt/boost/include/boost-1_33_1/boost/statechart/detail/state_base.hpp:1
6,
from
/opt/boost/include/boost-1_33_1/boost/statechart/state_machine.hpp:16,
from /opt/boost/include/boost-1_33_1/boost/intrusive_ptr.hpp:34,
from /opt/boost/include/boost-1_33_1/boost/statechart/event_base.hpp:15,
from /opt/boost/include/boost-1_33_1/boost/statechart/event.hpp:11,
from /home/kowalke/Projects/tcpproto/src/tcpproto.cpp:33:
/opt/boost/include/boost-1_33_1/boost/statechart/detail/leaf_state.hpp:2
6: Fehler: Fehler beim Parsen before `<' token
/opt/boost/include/boost-1_33_1/boost/statechart/detail/leaf_state.hpp:3
6: Fehler: destructors must be member functions
/opt/boost/include/boost-1_33_1/boost/statechart/detail/leaf_state.hpp:
In
function `void boost::statechart::detail::leaf_state()':
/opt/boost/include/boost-1_33_1/boost/statechart/detail/leaf_state.hpp:3
6: Fehler: ` void boost::statechart::detail::leaf_state()' redeclared as
different kind of symbol
/opt/boost/include/boost-1_33_1/boost/statechart/detail/leaf_state.hpp:2
6: Fehler: previous declaration of `template
Hi Oliver Oliver.Kowalke@infineon.com wrote:
Hello, I'm using statechart on LINUX with gcc-3.4.2. bjam was able to compile the examples but if I copy the StopWatch-example into a Kdevelop-project I get errors?! I assume I've to put some additional compiler-flags which are not mentioned in the tutorial. Could you help please! [error snipped]
According to Oliver's follow-up by private mail this problem was due to a wrong include directory in his setup and has now been resolved. Regards, -- Andreas Huber When replying by private email, please remove the words spam and trap from the address shown in the header.
participants (2)
-
Andreas Huber
-
Oliver.Kowalke@infineon.com