On Windows systems
Compile and link the sample API exit program, amqsaxe0.c, on Windows
A manifest file is an optional XML document containing the version, or any other, information that can be embedded in a compiled application or DLL.
If we have no such document, omit the -manifest manifest.file parameter in the mt command.
Adapt the commands in the examples in Figure 1 or Figure 2 to compile and link amqsaxe0.c on Windows. The commands work with Microsoft Visual Studio 2008, 2010, or 2012. The examples assume that the C:\Program Files\IBM®\MQ\tools\c\samples directory is the current directory.
32 bit
cl /c /nologo /MD /Foamqsaxe0.obj amqsaxe0.c link /nologo /dll /def:amqsaxe.def amqsaxe0.obj \ /manifest /out:amqsaxe.dll mt -nologo -manifest amqsaxe.dll.manifest \ -outputresource:amqsaxe.dll;2
64 bit
cl /c /nologo /MD /Foamqsaxe0.obj amqsaxe0.c link /nologo /dll /def:amqsaxe.def \ /libpath:..\..\lib64 \ amqsaxe0.obj /manifest /out:amqsaxe.dll mt -nologo -manifest amqsaxe.dll.manifest \ -outputresource:amqsaxe.dll;2