I've just started experimenting with Poco for the first time and I am unable to get the POCO_DECLARE_EXCEPTION macro to work.
Even trying to compile the following in a file of its own fails:
- Code: Select all
#include <Poco/Exception.h>
POCO_DECLARE_EXCEPTION(Test_API, TestException, Poco::RuntimeException);
hixxy@dev:~/test/src{}$ g++ test.cpp
test.cpp:3: error: expected initializer before ‘:’ token
hixxy@dev:~/test/src{}$
I am using the latest Poco version compiled on Debian Squeeze only yesterday.
Thanks





