Apache Qpid (1) -- build, continued

1. MFC Client

  1) additional include dir

     $(BOOST_ROOT)\

     $(QPID_ROOT)\include\

 

  2) Preprocessor definition:

     a) NOMINMAX, for console application

     b) define NOMINMAX in stdafx.h

代码
#define  NOMINMAX
#ifndef max
#define  max(a,b)            (((a) > (b)) ? (a) : (b))
#endif

#ifndef min
#define  min(a,b)            (((a) < (b)) ? (a) : (b))
#endif
#include 
< afxcontrolbars.h >

#undef  max
#undef  min 


  3) additional library dir

   $(QPID_ROOT)\bin;

   $(BOOST_ROOT)\lib

 

  4) additional library

   qpidcommond.lib

   qpidclientd.lib

 

2. C# winform client

   直接把qpid.client.dll reference 进项目就可以

 

3. C++ client on LINUX  using Eclipse CDT

  1) include path

   $(QPID_ROOT)/cpp/src/

   $(QPID_ROOT)/cpp/src/gen/

 

  2) libraries

   boost_program_options

   boost_filesystem

 

   3) libraries  path

   ....

  

   4) linker flags

    $(QPID_LIB_PATH) /libqpidclient.so $(QPID_LIB_PATH) /libqpidcommon.so -Wl, --rpath = $(QPID_LIB_PATH)

 

你可能感兴趣的:(continue)