Hi. I'm having trouble getting http://wiki.videolan.org/LibVLC_Tutorial to compile. I'm using Cygwin on Vista.
I copied the include folder into a seperate folder with my C file next to the include/vlc folder, changed the #include <vlc/vlc.h> to #include "vlc/vlc.h" and made equivalent changes in vlc.h.
When I run "cc example.c -lvlc -o example" i get these errors:
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0xe): undefined reference to `_libvlc_exception_raised'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0x1d): undefined reference to `_libvlc_exception_get_message'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0x9e): undefined reference to `_libvlc_exception_init'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0xb8): undefined reference to `_libvlc_new'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0xe0): undefined reference to `_libvlc_media_new'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0x100): undefined reference to `_libvlc_media_player_new_from_media'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0x119): undefined reference to `_libvlc_media_release'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0x12b): undefined reference to `_libvlc_media_player_play'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0x154): undefined reference to `_libvlc_media_player_stop'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0x15f): undefined reference to `_libvlc_media_player_release'
/c/Users/ADMINI~1/AppData/Local/Temp/ccPIGpcd.o:sample.c:(.text+0x16a): undefined reference to `_libvlc_release'
collect2: ld returned 1 exit status
What do I need to do differently to get this to work? I assume I'm doing something completly wrong. I'm in the process of writing an app that needs to compile on multiple platforms.