This section describes compile-time symbol definitions used by the MPI library.
These symbols are used in library header files to handle compiler-specific language extensions when declaring external functions and data; in particular, those extensions used when making Win32 dynamic link libraries (DLLs). MPI_DECL1 precedes the return type of a function declaration; MPI_DECL2 follows the return type and precedes the function name:
MPI_DECL1 long MPI_DECL2 mpiModuleFunction();
Use the following symbol definitions when building an application or the MPI library.
When defined, MPI_ASSERT will cause calls to the macro mpiASSERT(expression) to be compiled into the library. Otherwise, these calls will be discarded by the preprocessor.
The mpiAssert(...) macro is used by the library and is available to applications. It is a valuable debugging tool that can be used to catch programming errors at their source and prevent them from spreading. If the argument to the macro is TRUE (i.e. non-zero), execution proceeds normally. Otherwise, an error message is displayed; the message contains the name of the file and the line number of the mpiAssert(...) call. The application exits after displaying the message.
The MPI_ASSERT define is also required for the msgCHECK(...) macro to work. msgCHECK(...) is use throughout the sample applications and utilities.
The MPI_PLATFORM symbols are used to indicate the platform for which the library and applications are built. Each platform has its own unique symbol.
Standard platform define:
Supported platforms, requires platform specific release (contact Kollmorgen for availability):
Reserved for future use:
Legacy platforms (no longer supported):
Note: Existence of an MPI_PLATFORM symbol for a potentially supported platform does not imply intent to support that platform.
Project Settings - Microsoft Visual Studio 2005
The MPI distribution includes a solution file for Visual Studio 2005, MDK.sln. It contains several projects, demonstrating how to build example MPI applications and utility programs. The following project settings are used to build MPI-Win32 applications. You can use these project settings to build your own MPI applications. The project settings are also viewable in VisualStudio from the Property Manager.
Common Properties -> User Macros
C/C++ -> General -> Additional Include Directories
C/C++ -> Preprocessor -> Preprocessor Definitions
C/C++ -> Code Generation - > Runtime Library
C/C++ -> Code Generation -> Struct Member Alignment
Linker -> General -> Additional Library Dependencies
Linker -> Input -> Additional Dependencies
|| | Copyright © 2001-2010 Motion Engineering|