I have fixed this problem and facing runtime crash as mention in "Call to BLACS_PINFO() crashes the hello example" http://icl.cs.utk.edu/lapack-forum/viewtopic.php?f=2&t=2381
user discussion query.
Please modify the preprocessor macros for BLACS_C, BLACS_Cinit, BLACS_Finit projects (vcproj) as follow...
SYSINC ; UpCase ; BlacsDebugLvl=0; UseMpich; OMPI_IMPORTS; OPAL_IMPORTS; ORTE_IMPORTS
Please note OMPI_IMPORTS; OPAL_IMPORTS; ORTE_IMPORTS are required for OpenMPI.
With above modification BLACS library should compile property; please let me know if you face any issue.
Once you fix this compilation errors, using example program as mention in my "Call to BLACS_PINFO() crashes the hello example" post you can observe the crash when it makes call to BLACS_GRIDINIT().