I've found that even with using -L and -I options with pointing exactly in "c:\programs\mentalray\lib and include" mray does not find the libraries that are there by mray default instalation and gives error for mising shaders like DGS,... And then I found that I dont have setted environment variables for mr standalone:
MI_ROOT=c:\programs\mentalray
MI_RAY_INCPATH=c:\programs\mentalray\include
MI_LIBRARY_PATH=c:\programs\mentalray\lib
after that I renamed "rayrc" to "ray3rc" and also changed its content, from default:
registry "{MAYABASE}" value "C:/Programs/mentalray" end registry
registry "{SYSTEM}" value "windows" end registry
registry "{DSO}" value "dll" end registry
$lookup "{MAYABASE}"
registry "{_MI_REG_INCLUDE}" value "{MAYABASE}\include" end registry
registry "{_MI_REG_LIBRARY}" value "{MAYABASE}\lib" end registry
to this one:
registry "{MAYABASE}" value "C:/Programs/mentalray" end registry
registry "{SYSTEM}" value "windows" end registry
registry "{DSO}" value "dll" end registry
$lookup "{MAYABASE}"
$lookup "{SYSTEM}"
$lookup "{DSO}"
registry "{_MI_REG_INCLUDE}" value "{MAYABASE}\include" end registry
registry "{_MI_REG_LIBRARY}" value "{MAYABASE}\lib" end registry
registry "{MR_START}"
link "{MAYABASE}/lib/base.{DSO}"
link "{MAYABASE}/lib/physics.{DSO}"
link "{MAYABASE}/lib/mayabase.{DSO}"
link "{MAYABASE}/lib/contour.{DSO}"
link "{MAYABASE}/lib/subsurface.{DSO}"
link "{MAYABASE}/lib/paint.{DSO}"
link "{MAYABASE}/lib/mi_openexr.{DSO}"
link "{MAYABASE}/lib/mayahair.{DSO}"
link "{MAYABASE}/lib/mix8layer.{DSO}"
link "{MAYABASE}/lib/bumpCombiner.{DSO}"
end registry
$lookup "{MR_START}"
and finaly shaders like bumpCombiner and L-Glass must be copied by hand from maya\mentalray\lib and include to mentalrays defined above in ray3rc directories.
hope this will help someone