OMP: Error #15: Initializing libguide.lib, but found libguide40.dll already initialized.

"OMP: Error #15: Initializing libguide.lib, but found libguide40.dll already initialized" is a linker error generated when different parts of a program try to link both the static and dynamic versions of the OpenMP runtime.  The solution is to expilcitly call out either a dynamic or static link.  To link the dynamic OpenMP runtime library specify the options /MD and /Qopenmp-link=dynamic.  To link statically specify /MT and /Qopenmp-link=static.

A related article for Mac OS X* developers can be found here.

For more complete information about compiler optimizations, see our Optimization Notice.