VC++ 2008 express (vs2008) – fatal error C1085 … The parameter is incorrect.
Recently while trying to compile wxWidgets for the open source project glest, I kept getting errors in VC++ 2008 express edition related to pre-compiled headers. The errors were:
fatal error C1085 … The parameter is incorrect.
In my case the solution was found here (see Gary Gilbreath’s comment.. especially item #3)
I was compiling on a mapped network drive (in my case using VirtualBox’s shared folders) and VS2008 does NOT like working on pre-compiled headers on network drives. The solution was to change the path of the pre-compiled headers from pointing to my mapped drive (w:) to c:\xx.pch