At version 8.0.0.0, MQ updated it's C/C++ compiler to Visual Studio 2012. This updated meant that any MQ C++ application built using Visual Studio 2010 or below required a recompilation. This was documented also. Now with version 8.0.0.2 MQ supports C++ applications built using Visual Studio 2005/2008/2010. In V8.0.0.2 MQ C++ libraries built using Visual Studio 2005 are now installed bin\VS2005 (32 bit) and bin64\VS2005 (64 bit).
How to point your application to use MQ C++ libraries built using Visual Studio 2005?
There are couple of ways:
1) Prefix the PATH environment variable with path to MQ C++ libraries as below
SET PATH=C:\Program Files\IBM\WebSphere MQ\bin\VS2005;%PATH%
2) If updating PATH environment variable is not an option, then a batch file can be used to launch the application
A sample batch file content can be
SETLOCAL
SET PATH=C:\Program Files\IBM\WebSphere MQ\bin\VS2005;%PATH%
app.exe <= Your application name
ENDLOCAL
Important point to note here: Do not enclose the path in double quotes like "C:\Program Files\IBM\WebSphere MQ\bin\VS2005" because DLL search logic does not handle correctly if the path is enclosed in double quotes. Please see an useful discussion here.
https://www.ibm.com/developerworks/community/blogs/messaging/entry/mqv8_0_0_2_support_for_mq_c_applications_built_using_visual_studio_2005_10_compilers?lang=en
沒有留言:
張貼留言