Could it be that you forgot an include or a using namespace directive?
Usually when I get "ISO C++ forbids delcaration of sometype with no type" I simply forgot to include the type.

Pedro Lamarão wrote:
Austin Shoemaker escreveu:
  
I can't find this in the documentation or on the web, surprisingly, so
I thought I'd ask here:

Should I be able to use "preferred syntax" with boost::signal using
GCC 4.0? I get "ISO C++ forbids delcaration of 'signal' with no type"
errors, and portable syntax works fine.
    

Can you provide the problematic code with compiler output?

  

--

Sébastien Fortier