---------- Forwarded Message ----------
Subject: STATIC LINKING
Date: Saturday 08 March 2008
From: luigi <[EMAIL PROTECTED]>
To: [email protected]
Hi I'm trying to link STATICALLY a program to libavcodec, libavformat and
libswscale. Compilation seems ok, but when g++ arrives at the linking stage I
get a lot of error messages:
myprog.cpp:68: undefined reference to `av_find_stream_info'
referring to this and other functions contained in libavcodec.
--------------------------------------------------------------------------------------------------------
The Makefile contains:
. . .
LG_my_prog : $(DEPS)
$(CC) $(CPPFLAGS) -o LG_my_prog LG_my_prog.cpp \
$(LIBS) $(LIBPATH) -lcinelib -lswscale -lavformat -lavcodec \
etc ............
--------------------------------------------------------------------------------------------------------
All the files that use libavcodec contain
#ifdef __cplusplus
extern "C"
{
#endif
#include <avcodec.h>
#include <avformat.h>
#ifdef __cplusplus
}
#endif
--------------------------------------------------------------------------------------------------------
Can anybody figure out where I make mistakes?
Thank you.
Luigi
-------------------------------------------------------
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user