Moc returns 0xC0000135 error code as application compilation starts (Qt built as a shared library - Win 7 x64)
Configuration: Windows 7 x64 / Win SDK 7.1 cl compiler/ Qt5.1.0 (OpenGL) built as a shared library (binaries downloaded from Qt-project website).
With Qt5.1.0 built (from source with the "-opengl desktop" switch) as a static library, my test program compiles and runs.
With Qt5.1.0 built as a shared library, although the environment is correctly set, moc immediately returns this error code (0xC0000135).
Note that moc behaves the same way with both Qt5.1.0 OpenGL and ANGLE versions.
A brief search with your favorite search engine (search term: moc error 0xC0000135) reveals three possible causes of that error code:
- could be a "bad path environment variable":https://bugreports.qt-project.org/browse/QTBUG-29935
- "try running this from Visual Studio command prompt":http://stackoverflow.com/questions/8344346/qwt-installation-errors It could also mean it is better to use mingw32-make instead of nmake
- "nmake cannot find the compiler":http://stackoverflow.com/questions/6622869/problem-with-nmake
OK, thanks willi.