This assumes that this batch file is located in the same directory as amqsput0.c and that the executable file (amqsput.exe) will be stored in that same directory. and now you can proceed to compile the C programs from MQ.Ĭ) For example, to compile amqsput0.c for bindings mode, you can create a batch file called 'cl_put.bat' with the contents shown below. 'C:Program FilesMicrosoft Visual Studio 10.0VCbinvcvars32.bat'ī) When you are ready to compile the C program using the command prompt, open a new Command Prompt window, issue: For example, the 'Microsoft Visual C++ Express 2010' was installed and there are several directories 'Microsoft Visual Studio' and the one shown below is the one with the highest edition number (10.0): The contents of this batch file should point to the highest number of the Visual Studio. Instead, you can set up the environment variables in a Command window by running a batch file, and then you can run the 'CL' compiler directly or by way of a batch file in order to compile and link the MQ samples.Ī) Create a batch file inside a directory that is in the PATH, to run 'vcvars32.bat' which is the batch file that is supplied by VC++ to setup the proper variables for compiling and linking.Įxample: You can add a batch file in the directory that is in your PATH. 'Visual C++ 2010 Express Edition' and the 'MSDN Express Library' (it has the file vcvars32.bat, which is mentioned below).īecause the MQ samples are simple files and programs, there is NO need to use the rather complex and intimidating GUI For the Visual C++ compiler. You will need to download both the following packages: You can download it from the Microsoft website: Microsoft Visual C++ 2010 Express edition can be downloaded for free and used as the C compiler for the MQ samples.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |