Hi,
I am using Visual studio community 2019 version 16.9.4.
There is an error in my visual C++ project: impossible open #include <fnmatch.h> (Error code E1696).
Do you know that issue ?
Best regards
Luca
Hi,
I am using Visual studio community 2019 version 16.9.4.
There is an error in my visual C++ project: impossible open #include <fnmatch.h> (Error code E1696).
Do you know that issue ?
Best regards
Luca
I'd like to create a Visual C++ project based on this project: https://github.com/binance-exchange/binacpp.
Ok. I looked at the code. It looks as if it was made for Unix/Linux.
Github provides so called master include sources: fnmatch.h: fnmatch.h
So you must somehow build a github lib. You could ask in the github community: github.community
Another way would be: delete all the #include lines that are not present in Visual C++. Then let the compiler complain, which functions and classes are unknown (they would be declared in the deleted include files). So you must search for a corresponding functionality or implement their functionality on your own.
Regards, Guido
Hello,
you must check your include directories in the project settings. In which directory is the file fnmatch.h? You must add this directory to your include directories.
Regards, Guido
It seems that you included to your project a non-standard or third-party header file, which sometimes can be replaced with PathMatchSpec function in Window: https://www.bing.com/search?q=fnmatch.h.
Hi,
As far as I'm concerned, fnmatch is not available in windows. And I suggest you could try to use PathMatchSpecA function (shlwapi.h) to instead of it.
I suggest you could refer to the thread: https://stackoverflow.com/questions/35877738/windows-fnmatch-substitute
Best Regards,
Jeanine
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Hi Guido,
the file fnmatch.h is not present in the directory: C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0.
It is very strange.
Best regards
Luca
fnmatch.h is not a Standard include file. It is a third-party or self-developed source file.
Why do you use it in your code?
Hi,
is the best way substitute the file or there is another way ?
Best regards
Luca
Again: why do you want to use the file? Which classes or functions are in the file that you need? There is a Linux header file fnmatch.h, but it doesn't exist in Windows. So why do you want to use the file, if it is not your own code or a known library?
I suggest, you could delete the include in your source file. Then tell us, which classes or functions are missing.
Guido, thank you very much for your support.
7 people are following this question.