Reputation: 21
My code using lame.h library:
#include <stdio.h>
#include <stdlib.h>
#include <lame/lame.h>
lame_global_flags *gfp;
gfp = lame_init();
if (gfp == NULL) {
fprintf(stderr, "Failed to initialize LAME encoder\n");
return 1;
}
but the error says that : #include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (D:\Compressed\Tutorial2.c). and : cannot open source file "lame/lame.h" I edited the c_cpp_properties.json like this in the VsCode but I still can not run my C file with the library lame.h:
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"C:/Users/tamin/Downloads/lame/lame-3.100/include"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerPath": "C:\\MinGW\\bin\\gcc.exe",
"cStandard": "c11",
"cppStandard": "gnu++14",
"intelliSenseMode": "windows-gcc-x86"
}
],
"version": 4
}
Please help me with this situation. Thank you very much.
I am really lost right now since our prof did not teach much about this, I just really want to know but I am still very confused about this
Upvotes: 1
Views: 52