LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-30-2005, 02:57 AM   #1
ivorytower27
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Rep: Reputation: 0
Question avcodec and avformat libraries in ubuntu


i have recently installed avcodec and avformat libraries in my ubuntu pc (through a ffmpeg package) and tried using them. the program (in c++) gets the following error:

undefined reference to av_register_all()
...

the same error message is displayed for each reference to the library methods

weird thing is, the program is able to see the header files but not their methods.
how can i configure linux (or g++) for it to be able to see the methods?
what could be causing the problem?
 
Old 09-30-2005, 10:07 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
need to link the library to the executable with -l<name> name is the name of the library without lib prefix or .so suffix
 
Old 10-11-2005, 06:43 PM   #3
ivorytower27
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Original Poster
Rep: Reputation: 0
error loading shared libraries

thanks for the help and response. i did just that. it compiled and stopped generating errors regarding undefined references to methods but when i start running the the program it says:

error while loading shared libraries: libavformat.so: cannot open shared object file: No such file or directory

i check and confirmed that the libraries are indeed installed in the usr/local/lib/ folder. i wonder what causes this error? any insight would be a lot of help...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu / Ubuntu + KDE / Kubuntu | Which do you use? BuckRogers01 Ubuntu 60 07-08-2006 12:24 AM
XP doesn't recognize Ubuntu, Ubuntu installed first. MonkeyBusiness Linux - Newbie 9 06-21-2006 03:58 AM
transcode has problems with avcodec.h (Suse 9.2) the-damian Linux - Software 0 12-03-2005 01:18 PM
Ubuntu C libraries documentation not found Darwish Ubuntu 0 10-02-2005 12:48 PM
Clean install from Ubuntu Warty to Ubuntu Hoary Erik_the_Red Linux - Newbie 2 06-05-2005 07:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration