This tutorial applies to OpenAMQ/1.3 and earlier versions, building with MSVC/2003 and earlier versions. For OpenAMQ/1.4 and MSVC/2008 and later, please see http://win.openamq.org.
Developers on Windows are accustomed to using the MSVC IDE. The OpenAMQ build system does not generate MSVC projects, so these have to be configured manually.
This example assumes that you are using Microsoft Visual Studio .NET 2003. However, the same settings should also be accessible in Microsoft Visual Studio 6.0. We also assume that you have already built OpenAMQ.
- Create a new Project for your application.
- Add the directory pointed to by %IBASE%\include to your include directories (Project->Properties->Configuration Properties->C/C++->General->Additional Include Directories).
- Add the directory pointed to by %IBASE%\lib to your library directories (Project->Properties->Configuration Properties->Linker->General->Additional Library Directories).
- Select the appropriate Runtime Library to use, depending on the BOOM_MODEL setting you used to build OpenAMQ (Project->Properties->Configuration Properties->C/C++->Code Generation->Runtime Library). For example, if OpenAMQ is built with BOOM_MODEL=mt,debug, you should use the Multi-threaded Debug (/MTd) runtime. Note that the DLL runtime is not currently supported.
- Add the following libraries to your project (Project->Properties->Configuration Properties->Linker->Input->Additional Dependencies):
libamq_common.lib libamq_operate.lib libamq_server.lib libamq_wireapi.lib libapr.lib libaprutil.lib libasl.lib libgsl.lib libgsl3.lib libicl.lib libipr.lib libpcre.lib libsfl.lib libsmt.lib libsmt3.lib libzip.lib ws2_32.lib wsock32.lib netapi32.lib winmm.lib oldnames.lib mpr.lib uuid.lib rpcrt4.lib