Fatal Error in units initialisation

hi to all..
well i have compiled blank viewer application with just import export facility.. so that it can work as viewer.. the exe generated works fine on my PC but when i take that exe on another PC along with all the dlls and execute it .. it gives "Fatal Error in units initialisation"..

what may the cause of it.. how can i run my exe on other machine which does not have OCC installed on it.. without the above error..

Bearloga's picture

Place two files Lexi_Expr.dat and Units.dat from the src/UnitsAPI directory of OCC in some directory and set the following environment variables to get the path to that files:
set CSF_UnitsLexicon=\Lexi_Expr.dat
set CSF_UnitsDefinition=\Units.dat
Hope this will help.