Hello all,<br> I am working on extending libvlc for some personal development purpose. This are the steps and error that I get:<br>1. I make a function myfunction() and added it to media_player.c<br>2. I put the definition of myfunction() in libvlc.h<br>
3. I compile the code and do a make install. I install then in /usr in my linux box.<br>4. When I check if the header is correctly installed in /usr/include/libvlc.h ... it is ok.<br>5. I would then like to call myfuction() from a program myprogram.c that initializes libvlc and starts media player and plays an rtsp file.<br>
6. myprogram.c include <vlc/vlc.h><br>7. I compile myprogram using gcc -o myprogram myprogram.c 'pkg-config libvlc --cflags --libs' -wall<br>8. But during compilation I get the error undefined reference to 'myfunction'<br>
9. Without the call of myfunction in myprogram.c, all compilations go fine and I am able to stream an RTSP file.<br><br>What am I doing wrong? I would be glad if somebody could point out what I am doing wrong or if there is any additional steps that I need to do while installing vlc with changes into the code.<br>
<br>Best Regards<br>Vinod<br>