Compiling and linking with Microsoft Developer Studio (VC++ 6.x)


Up: Programming Tips Next: Compiling with VC++ from the command line Previous: Programming Tips

    1. Create a new project.
    2. Add MPICH SDK include to the include path.
    3. Add MPICH SDK lib to the library path.
    4. Add the /MTd compiler switch to the Debug target and /MT to the Release target.
    5. Add ws2_32.lib to the library option. Add mpich.lib to the Release target and mpichd.lib to the Debug target.
    6. Add your source files.
    7. Build.
    8. Copy the executable and use mpirun to run the application.
A graphical illustration of where to make the compiler settings can be found in Appendix MSDEV Project settings



Up: Programming Tips Next: Compiling with VC++ from the command line Previous: Programming Tips