6 - Programming the Console w/ C++

Reported by mjeungmjeung (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:
http://www.openamq.org/doc:prog-console#toc17

Attachments:

No files attached to this page.

Comments

Add a New Comment

Edit | Files | Tags | Print

rating: 0+x

Who's following this issue?

pieterhpieterh
martin_sustrikmartin_sustrik
mjeungmjeung
CybariteCybarite
Watch: site | category | page

Submitted by mjeungmjeung

Use one of these tags to say what kind of issue it is:

  • issue - a fault in the software or the packaging or the documentation.
  • change - a change or feature request.

Use one of these tags to say what state the issue is in:

  • open - a new, open issue.
  • closed - issue has been closed.
  • rejected - the issue has been rejected.

Use one of these tags to say how urgent the issue is:

  • fatal - the issue is stopping all work.
  • urgent - it's urgent.

All open

Most recent

Page tags: closed