Problem when including "vlc.h" file to c++ win32
Posted: 06 Jun 2018 14:19
I downloaded vlc-3.0.3's sdk with the .7z link given on this page -> https://get.videolan.org/vlc/3.0.3/win3 ... 3-win32.7z
I added the whole vlc folder to my c++ project, I added the include directory, the library directory and the libs to my project's properties.
I added a path to vlc's dlls to my PATH environment variable.
When I add the include to "vlc\vlc.h" file to my project's .cpp file and try to build it, I get a bunch of errors from the "libvlc_media.h" file...
-Error (active) E0090 function returning function is not allowed vlc-3.0.3\sdk\include\vlc\libvlc_media.h 368
-Error (active) E0338 more than one instance of overloaded function "libvlc_media_new_callbacks" has 'C' linkage vlc-3.0.3\sdk\include\vlc\libvlc_media.h 475
-Error C2065 'libvlc_media_read_cb': undeclared identifier vlc-3.0.3\sdk\include\vlc\libvlc_media.h 368
-Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int vlc-3.0.3\sdk\include\vlc\libvlc_media.h 368
-Error C2513 'int': no variable declared before '=' vlc-3.0.3\sdk\include\vlc\libvlc_media.h 368
-Error C2143 syntax error: missing ';' before '(' vlc-3.0.3\sdk\include\vlc\libvlc_media.h 368
-Error C2062 type 'void' unexpected vlc-3.0.3\sdk\include\vlc\libvlc_media.h 368
-Error C2061 syntax error: identifier 'libvlc_media_read_cb' vlc-3.0.3\sdk\include\vlc\libvlc_media.h 478
Is there a known cause for those errors??
I added the whole vlc folder to my c++ project, I added the include directory, the library directory and the libs to my project's properties.
I added a path to vlc's dlls to my PATH environment variable.
When I add the include to "vlc\vlc.h" file to my project's .cpp file and try to build it, I get a bunch of errors from the "libvlc_media.h" file...
-Error (active) E0090 function returning function is not allowed vlc-3.0.3\sdk\include\vlc\libvlc_media.h 368
-Error (active) E0338 more than one instance of overloaded function "libvlc_media_new_callbacks" has 'C' linkage vlc-3.0.3\sdk\include\vlc\libvlc_media.h 475
-Error C2065 'libvlc_media_read_cb': undeclared identifier vlc-3.0.3\sdk\include\vlc\libvlc_media.h 368
-Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int vlc-3.0.3\sdk\include\vlc\libvlc_media.h 368
-Error C2513 'int': no variable declared before '=' vlc-3.0.3\sdk\include\vlc\libvlc_media.h 368
-Error C2143 syntax error: missing ';' before '(' vlc-3.0.3\sdk\include\vlc\libvlc_media.h 368
-Error C2062 type 'void' unexpected vlc-3.0.3\sdk\include\vlc\libvlc_media.h 368
-Error C2061 syntax error: identifier 'libvlc_media_read_cb' vlc-3.0.3\sdk\include\vlc\libvlc_media.h 478
Is there a known cause for those errors??