So long as PGI is installed last, it shouldn’t matter, but it’s possible that you missed a step such as installing MS C++. You may try re-installing, following the steps outlined on our web page, and see if it fixes the issue.
The other place I’ve seen this error is when mismatching compiling with and without -Mdll since the “__environ” symbol only lives in the MS static C runtime library (libcmt.lib). Or you can try adding “-Mdll” or “-Bdynamic” to your compiler options to use the DLL C runtime instead.
Note that I’m assuming that “-enviiron” is a typo and should be “__environ”. If the error really does show “-enviiron”, then something else is going on since I’ve never seen this symbol name before and highly doubt a symbol name would start with a “-”.