Statechart: Comple error with MinGW and not MSVC-7.1

Hello,
My name is Eoin O'Callaghan I've run into a difficulty with the Boost
Statechart library as I was porting my code from MSVC-7.1 to work with
MinGW also. MinGW gives an error regarding the ctx parameter used with
non simple states when the state is a template class;
MinGWFail.cpp:24: error: expected `)' before "ctx"
MinGWFail.cpp:29: error: expected constructor, destructor, or type
conversion before '(' token
I've attached a small file which replicates the problem. Note that if
the content state is a simple_state then both MSVC-7.1 and MinGW compile
without errors.
Hope someone can make some sense of this, thanks the the author for
making such an excellent library free for everyone. (Indeed thanks to
all those involved in Boost :) )
Kind regards, Eoin.
#include

Eoin wrote:
Hello,
My name is Eoin O'Callaghan I've run into a difficulty with the Boost Statechart library as I was porting my code from MSVC-7.1 to work with MinGW also. MinGW gives an error regarding the ctx parameter used with non simple states when the state is a template class;
MinGWFail.cpp:24: error: expected `)' before "ctx" MinGWFail.cpp:29: error: expected constructor, destructor, or type conversion before '(' token
Please see: http://thread.gmane.org/gmane.comp.lib.boost.user/19677 Although this post is about asynchronous_state_machine, the problem (and the solution) seems to be the same.
Hope someone can make some sense of this, thanks the the author for making such an excellent library free for everyone.
:-) You're welcome! HTH, -- Andreas Huber When replying by private email, please remove the words spam and trap from the address shown in the header.

Hello Andreas, Thank you for your very speedy reply, unfortunately the gmane archives seem to be down for the last 12 hours. Any chance you could post the solution again? Thanks, you've been a great help. Kind regards, Eoin.
Please see: http://thread.gmane.org/gmane.comp.lib.boost.user/19677
Although this post is about asynchronous_state_machine, the problem (and the solution) seems to be the same.

Got lucky with a Google search and found the relevant post. Thanks again, its sorted now.
participants (2)
-
Andreas Huber
-
Eoin