Re: Problem with xvid_encraw
Michael Militzer <[email protected]> Mon, 28 Aug 2006 14:25:23 +0200
| Newsgroups | gmane.comp.video.xvid.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, you need to link xvid_encraw against the xvidcore library (libxvidcore.a). In the directory where the xvid_encraw.c source file is located there should be an example makefile too that takes care of the linking step too. Regards, Michael Quoting Ayan Roy <[email protected]>: > Hi, > I am doing a project on video streaming for which I need to encode a raw > video. I am trying with xvidcore-1.1.0. But the problem is that, while > compiling the program xvid_encraw.c, its giving a compilation error > (Undefined References) of some functions like xvid_global, > xvid_plugin_single,...etc which r all in xvid.h and I have included that. > Here is what I have done....... > gcc -lm -o xvid_encraw xvid_encraw.c > /tmp/ccPYhibB.o: In function `enc_init':xvid_encraw.c:(.text+0x2c6d): > undefined reference to `xvid_global' > :xvid_encraw.c:(.text+0x2d31): undefined reference to `xvid_plugin_single' > :xvid_encraw.c:(.text+0x2d97): undefined reference to `xvid_plugin_2pass2' > :xvid_encraw.c:(.text+0x2def): undefined reference to `xvid_plugin_2pass1' > :xvid_encraw.c:(.text+0x2e28): undefined reference to > `xvid_plugin_lumimasking' > :xvid_encraw.c:(.text+0x2e62): undefined reference to `xvid_plugin_dump' > :xvid_encraw.c:(.text+0x302b): undefined reference to `xvid_encore' > /tmp/ccPYhibB.o: In function `enc_stop':xvid_encraw.c:(.text+0x3070): > undefined reference to `xvid_encore' > /tmp/ccPYhibB.o: In function `enc_main':xvid_encraw.c:(.text+0x3369): > undefined reference to `xvid_encore' > collect2: ld returned 1 exit status > > > Plzzz help........... > Thanx in advance.. > > -- > With Regards, > > \\\\\//// > / \ > | \\ // | > ( | (.) (.) |) > ---------o00o--(_)--o00o----------------- > Ayan Kumar Roy > Web: http://sit.iitkgp.ernet.in/~ayanr > [email protected] > [email protected] > M.Tech (Information Technology) > IIT Kharagpur > ------ooo0------------------------------- > ( ) 0ooo > \ ( ( ) > \_) ) / > (_/