'Cannot open type library file: 'msxml4.dll': No such file or directory
I am trying to import this dll in my code:
#import <msxml4.dll>
But at every place i have this import, i am getting this error:
Error 1415 fatal error C1083: Cannot open type library file: 'msxml4.dll': No such file or directory...
What are the causes of this .dll missing. Code use to work fine before untill in resintalled windows and now trying to build it again.
Solution 1:[1]
I have a c++ project upgrading from vs 2012 to vs2015, and got same error c1083.
Explanation
This is because msxml4.dll cannot be found. (for me instead of being in windows\system32 folder, it was in temporary protected folder. )
(I confirmed with -
dir /s /b/ msxml4.dll
Solution
Is to install msxml4 service pack 2 or msxml4 service pack 3
... worked for me.
Solution 2:[2]
Search Where msxml4.dll is present in your code base or c:
dir /s /b msxml4.dll
is you find any paths in step 1,add that path to Additional Library Directories of Your Project.
2.1 Right Click on Project > Configuration Properties > Linker > General > Additional Library Directories 2.2 Add Path to Additional Library Directories
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Thomas Weller |
| Solution 2 | Durga Prasad Guntoju |
