Cannot compile libvlc in Codeblocks

This forum is about all development around libVLC.
suckitdry
New Cone
New Cone
Posts: 4
Joined: 19 Apr 2021 03:51

Cannot compile libvlc in Codeblocks

Postby suckitdry » 19 Apr 2021 04:03

Hi, I'm trying to compile an example program using libvlc 3.0.0 with Codeblocks 15.12, but I get several errors, first it complained to add -std=c++11 to compiler options, after I added it I got all these errors:

||=== Build: Release in player (compiler: GNU GCC Compiler) ===|
D:\Program Files (x86)\CodeBlocks\MinGW\include\vlc\libvlc_media.h|368|error: 'libvlc_media_read_cb' was not declared in this scope|
D:\Program Files (x86)\CodeBlocks\MinGW\include\vlc\libvlc_media.h|368|error: 'ssize_t' was not declared in this scope|
D:\Program Files (x86)\CodeBlocks\MinGW\include\vlc\libvlc_media.h|368|error: 'libvlc_media_read_cb' was not declared in this scope|
D:\Program Files (x86)\CodeBlocks\MinGW\include\vlc\libvlc_media.h|368|error: 'ssize_t' was not declared in this scope|
D:\Program Files (x86)\CodeBlocks\MinGW\include\vlc\libvlc_media.h|368|error: expected primary-expression before 'void'|
D:\Program Files (x86)\CodeBlocks\MinGW\include\vlc\libvlc_media.h|368|error: expected primary-expression before 'unsigned'|
D:\Program Files (x86)\CodeBlocks\MinGW\include\vlc\libvlc_media.h|369|error: expected primary-expression before 'len'|
D:\Program Files (x86)\CodeBlocks\MinGW\include\vlc\libvlc_media.h|478|error: 'libvlc_media_read_cb' has not been declared|

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Cannot compile libvlc in Codeblocks

Postby Rémi Denis-Courmont » 19 Apr 2021 15:48

Define the ssize_t type to ptrdiff_t before you include VLC headers.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

suckitdry
New Cone
New Cone
Posts: 4
Joined: 19 Apr 2021 03:51

Re: Cannot compile libvlc in Codeblocks

Postby suckitdry » 24 Apr 2021 21:35

Ok thanks


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 17 guests