gnu.gcc.help
[Top] [All Lists]

linker error on cygwin

Subject: linker error on cygwin
From:
Date: 22 Jul 2006 05:54:18 -0700
Newsgroups: gnu.gcc.help
Hi,

I get a linker error when building "mplayer" on cygwin. The command
that fails follows:
(I removed some stuff for readibilty, I just hope I didn't removed the
important stuff...)

     $> gcc ... libavcodec/libavcodec.a ... -lfaac...
     //...
     libavcodec/libavcodec.a(faac.o):faac.c:(.text+0x3f): undefined
reference to `_faacEncOpen@16'
     //...

I suspect the problem is the suffix "@16" (4 x param. count?!)

     $> nm libavcodec/libavcodec.a | grep EncOpen
              U _faacEncOpen@16
     $> nm /usr/local/lib/libfaac.a | grep EncOpen
     00000520 T _faacEncOpen

Is this the issue?
If yes, any idea where the "@16" comes from? How can I get rid of it
and finally link?
If no, why I cannot link?!

Many thanks,
Petru


<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy