Adding new functions to libvlc. Linking problem.

This forum is about all development around libVLC.
akuired
New Cone
New Cone
Posts: 3
Joined: 22 Aug 2009 12:28

Adding new functions to libvlc. Linking problem.

Postby akuired » 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

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.

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

Re: Adding new functions to libvlc. Linking problem.

Postby Rémi Denis-Courmont » 22 Aug 2009 18:01

You need to add it to src/libvlccore.sym
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

akuired
New Cone
New Cone
Posts: 3
Joined: 22 Aug 2009 12:28

Re: Adding new functions to libvlc. Linking problem.

Postby akuired » 24 Aug 2009 13:58

Thank you very very much.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 7 guests