On Thu, Jan 29, 2004 at 07:39:59PM +0100, RRiChIe wrote:
> Hi all,
> 
> i've just begin a new program. Here's my code :
> 
> #include <stdio.h>
> #include <stdlib.h>
> #include <avifile-0.7/aviplay.h>
> #include <avifile-0.7/avifile.h>
> using namespace avm;
> 
> int main(int argc, char** argv[])
> {
>         avm::IAviPlayer* player =
> avm::CreateAviPlayer("http://www.tv-radio.com/station/contact/contact-20k.asx
> ",0,0,0,0,0); }
> 
> Then i try to compile this program by typing : g++ main.cpp -o fm but it
> returns the following errors :
> 
> /tmp/ccMt3SDu.o(.text+0x40): In function `main':
> : undefined reference to `avm::CreateAviPlayer(char const*, int, char const*,
> 
> unsigned, char const*, char const*)'
> collect2: ld returned 1 exit status
> 
> can anyone help me please???

Obviously you should learn more about how to use Makefiles and 
compile properly your code with libraries.

In this case yyou are missing  -laviplay  and eventually -L/path/to/lib
ahead of -l flag.  But I assume you really should check some
elementary HOWTOs before going any futher.


-- 
  .''`.       Litigation: The Business Model of the Future! (TM)
 : :' :        http://www.microsoft.com/mscorp/ip/tech/fat.asp
 `. `'    Zdenek Kabelac  [EMAIL PROTECTED], users.sf.net, fi.muni.cz}
   `-         Debian GNU/Linux maintainer - www.debian.{org,cz}     
    

_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to