I am working on Visual Studio Code on Windows 7 64-bit. After searching online for quite a while, I still can't solve my problem: I have a C program that includes libusb.h. whenever I try to compile using gcc, I get the following error:
In file included from min.c:1:0:
min.h:8:20: fatal error: libusb.h: No such file or directory
#include <libusb.h>
^
compilation terminated.
I tried a few solutions online, changing c_cpp_properties.json and settings.json(causing to VSCode to not showing any error on the #include <libusb.h>
line).
here is my files: c_cpp_properties.json:
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"C:/Users/VAKNIN/Downloads/Orel-thesis/libusb-1.0.23/include/libusb-1.0"
],
"browse": {
"path":[
"C:/Users/VAKNIN/Downloads/Orel-thesis/libusb-1.0.23/include/libusb-1.0"
]
},
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerPath": "C:\\MinGW\\bin\\gcc.exe",
"cStandard": "gnu11",
"cppStandard": "gnu++14",
"intelliSenseMode": "clang-x86"
}
],
"version": 4
}
settings.json:
{
"C_Cpp.intelliSenseEngine": "Tag Parser",
"C_Cpp.commentContinuationPatterns": [
"/**",
"C:/Users/VAKNIN/Downloads/Orel-thesis/libusb-1.0.23/include/libusb-1.0"
]
}
I am pretty lost after hours on this problem, I would appreciate any help.
EDIT:
This the the complete output of the following command: gcc min.c -o min
where min.c is the only C file I have.