Reported by mjeung (1221003046|%O ago)
There are two variables inside the console management code that cause errors for a C++ compiler.
Inside amq_mgt_queue.c there is a variable named "private"
Inside amq_cml.h there is a variable named "class"
If you try to compile with g++, you get these type of errors:
../libs/ibase/include/amq_cml.h:90: error: expected "," or "…" before "class"
../libs/ibase/include/amq_mgt_queue.h:122: error: expected unqualified-id before "private"
If you rename these variables to something else in the OpenAMQ source and rebuild, the problem goes away.
I ran into this while using g++ version 4.1.2.
Easiest way to reproduce is to try using g++ to compile the "Programming The Console" tutorial code:
No files attached to this page.