"urlmon.h" doesn't exist. Cannot find any solutions other than some posts from 2004

1k Views Asked by At

I am using an open sourced script from github which contains the following lines at the top:

#include <urlmon.h>
#pragma comment(lib, "urlmon.lib")

However, when I try to build it, it shows the following error:

fatal error: urlmon.h: No such file or directory

I have looked around for hours upon hours but there are no solutions I can find.

1

There are 1 best solutions below

9
On

This header contains functions used by the Microsoft Component Object Model (COM) and the Windows Shell.

https://learn.microsoft.com/en-us/windows/win32/api/urlmon/

You need to setup your environment for Win32 development

https://learn.microsoft.com/en-us/windows/win32/desktop-programming