hello
The simplest program
./code/hello/hello.cc
1#include "vlc/libvlc.h"
2#include <stdio.h>
3
4int main() {
5 const char *version = libvlc_get_version();
6 const char *compiler_version = libvlc_get_compiler();
7 const char *change_set = libvlc_get_changeset();
8 printf("libvlc version: %s\n", version);
9 printf("compiler version: %s\n", compiler_version);
10 printf("changeset: %s\n", change_set);
11 return 0;
12}
./code/hello/Makefile
1CXX_FLAGS := -I /Applications/VLC.app/Contents/MacOS/include
2LDFLAGS := -L /Applications/VLC.app/Contents/MacOS/lib
3LDFLAGS += -lvlc
4LDFLAGS += -Wl,-rpath,/Applications/VLC.app/Contents/MacOS/lib
5
6hello: hello.cc
7 g++ -o ./hello $(CXX_FLAGS) ./hello.cc $(LDFLAGS)