You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by mlus <ml...@39596.com> on 2016/07/16 07:14:36 UTC

activemq-cpp problme

I have a question about activemq-cpp-library-3.9.2 in Linux box.

I try this ...

# cp activemq-cpp-library-3.9.3-src.tar.bz2 /usr/local/src
# cd /usr/local/src
# tar jxvf activemq-cpp-library-3.9.3-src.tar.bz2
# cd activemq-cpp-library-3.9.3

# ./configure --prefix=/usr --includedir=/usr/include --libdir=/usr/lib64
# make
# make check
# make install

compile and install  success!.


Create C++ project using NetBeans IDE8.1 on Linux box.

set compiler option include dir
  /usr/include/activemq-cpp-3.9.3/activemq/core
  /usr/include/activemq-cpp-3.9.3/activemq/library
  /usr/include/activemq-cpp-3.9.3/activemq/util
  /usr/include/activemq-cpp-3.9.3/cms
  /usr/include/activemq-cpp-3.9.3/decaf/lang
  /usr/include/activemq-cpp-3.9.3/decaf/util
  /usr/include/activemq-cpp-3.9.3/decaf/util/concurrent

set linker option library
  pkg-config --libs activemq-cpp


coding C++ source code and build.

-- compiler error --
In file included from
/usr/include/activemq-cpp-3.9.3/activemq/core/ActiveMQConnectionFactory.h:20:0,
                 from hm_activemq.cpp:9:
/usr/include/activemq-cpp-3.9.3/activemq/util/Config.h:43:24: fatal
error: config.h: no sucha file and directory
     #include <config.h>


Then, Copy /usr/local/src/activemq-cpp-library-3.9.3/config.h
to /usr/include/activemq-cpp-3.9.3/activemq/util/

compile success!.


"make install" has problem about instll config.h  ?