Page 1 of 1

Adding new functions to libvlc. Linking problem.

Posted: 22 Aug 2009 12:54
by akuired
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

Code: Select all

//My new function VLC_EXPORT(int,module_get_pf(module_t *m));
File modules.c

Code: Select all

int module_get_pf(module_t *m){ //My function }
The error I get

Code: Select all

undefined reference to 'module_get_pf' collect2: ld returned 1 exit status
Thank you very much for your help.

Re: Adding new functions to libvlc. Linking problem.

Posted: 22 Aug 2009 18:01
by RĂ©mi Denis-Courmont
You need to add it to src/libvlccore.sym

Re: Adding new functions to libvlc. Linking problem.

Posted: 24 Aug 2009 13:58
by akuired
Thank you very very much.