Adding new functions to libvlc. Linking problem.
Posted: 22 Aug 2009 12:54
I've been trying to add new function to vlc for a project I'm working on. However, I'm unable to make it work because of a problem with the linker. The code I've added is the following.
File vlc_modules.h
File modules.c
The error I get
Thank you very much for your help.
File vlc_modules.h
Code: Select all
//My new function
VLC_EXPORT(int,module_get_pf(module_t *m));
Code: Select all
int module_get_pf(module_t *m){
//My function
}
Code: Select all
undefined reference to 'module_get_pf'
collect2: ld returned 1 exit status