<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello,<br/></div><div><br/></div><div>I'm using Ubuntu as a VM and compiled on it the actual FFMPEG sourcecode with this configuration:<br/></div><div><br/></div><div>./configure --disable-yasm --enable-shared<br/></div><div><br/></div><div>I got the library files (.a) and tried to use these in my Project, <br/></div><div>but if I call a av_...() function I got everytime undefined Reference linking errors...<br/></div><div><br/></div><div>I put the library files in the right directories and use this Makefile:<br/></div><div><span style="color:#2f4f4f;"><br/></span></div><div><span style="color:#2f4f4f;"><em>TARGET = Test<br/>OBJS = Main.o<br/><br/>DIR = /bin<br/><br/>CFLAGS = -O2 -G0 -Wall -Wno-write-strings<br/>CFLAGS += $(shell $(DIR)/sdl-config --cflags)<br/></em></span></div><div><span style="color:#2f4f4f;"><em><br/>CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti<br/>ASFLAGS = $(CFLAGS)<br/></em></span></div><div><span style="color:#2f4f4f;"><em><br/>LIBS = -L/usr/local/project/lib -lavcodec -lavdevice -lavfilter -lavformat -lavutil <br/>LIBS += -lstdc++ -lSDL_ttf -lfreetype -lSDL_image -lSDL_gfx  -ljpeg -lpng -lz -lm <br/>LIBS += -lSDL_mixer -lSDLmain -lSDL<u><br/></u></em></span><span style="color:#2f4f4f;"><em><br/></em></span>And this is my short test sourcecode:<br/></div><div><em><span style="color:#2f4f4f;"><br/></span></em></div><div><em><span style="color:#2f4f4f;">// SDL<br/></span></em></div><div><em><span style="color:#2f4f4f;">// ...<br/></span></em></div><div><em><span style="color:#2f4f4f;"><br/></span></em></div><div><em><span style="color:#2f4f4f;">// FFMPEG<br/></span></em></div><div><em><span style="color:#2f4f4f;">extern "C"<br/>{<br/>   #include "libavcodec/avcodec.h"<br/>   #include "libavutil/mathematics.h"<br/>}<br/></span></em></div><div><em><span style="color:#2f4f4f;"><br/></span></em></div><div><em><span style="color:#2f4f4f;">extern "C" int SDL_main(int argc, char *argv[]);<br/></span></em></div><div><em><span style="color:#2f4f4f;"><br/></span></em></div><div><em><span style="color:#2f4f4f;">int main(int argc, char *argv[])<br/>{<br/></span></em></div><div><em><span style="color:#2f4f4f;">    av_register_all();<br/></span></em></div><div><em><span style="color:#2f4f4f;"><br/></span></em></div><div><em><span style="color:#2f4f4f;">    return 0;<br/></span></em></div><div><em><span style="color:#2f4f4f;">}<br/></span></em></div><div><br/></div><div>Nothing more, nothing less...<br/></div><div><br/></div><div>Has maybe someone an Idea why I got this linking errors?<br/></div><div><br/></div><div><strong>Quick information:</strong><br/></div><div><br/></div><div>OS: Ubuntu 32 Bit<br/></div><div>Version: FFMPEG 1.0<br/></div><div><br/></div><div>Configuration: ./configure --disable-yasm --enable-shared<br/></div><div>Libary Files: avcodec.a |avdevice.a | avfilter.a | avformat.a | avutil.a<br/></div><div><br/></div><div>Error(s): <br/></div><div>:58: undefined reference to `<em><span style="color:#2f4f4f;">av_register_all</span></em>'<br/>...<br/><br/></div><div>Thanks in advance! :)<br/></div><div><br/></div><div>Ps.: Sorry, for my english. I did my best.<br/></div></div></body></html>