Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7161073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:30:15+00:00 2026-05-28T13:30:15+00:00

I am currently learning ffmpeg tutorial of Martin Bohme Tutorial Here and I want

  • 0

I am currently learning ffmpeg tutorial of Martin Bohme Tutorial Here

and I want to compile an ffmpeg sample program using Code Block IDE but, it can’t

#include <stdio.h>
#include <stdlib.h>

#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"

int main(int argc, char *argv[])
{
av_register_all();

    return 0;
}

Please help me. How to compile it. I am using Linux (Ubuntu)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:30:16+00:00Added an answer on May 28, 2026 at 1:30 pm

    You have to tell the compiler where the header and library files are. This is done by the -I flag to tell which directories contain header files, and -L to tell which directories contains libraries. You will also need -l to tell which libraries to link with.

    The flags can be used like this:

    $ g++ -I/path/to/headers myprogram.cpp -L/path/to/libraries -lthelibrary
    

    A note about libraries: On Linux (and UNIX systems) they are files with names that start with “lib” and end with the extension “.a” or “.so”. When specifying the library with the -l flag you do not write those. So for a library file “libfoo.a”, you only use -lfoo to link with it.

    For more information about the options of gcc and g++, see http://gcc.gnu.org/onlinedocs/gcc/Invoking-GCC.html.

    Edit: For an IDE like Code::Blocks there most likely is some project setting where you can add include and library directories and link libraries. Check the “Project” menu for a “Settings” or “Properties” alternative.

    Edit2: See for example this FAQ where to find linker settings in Code::Blocks, the pre-processor settings should be close by.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently learning MVVM abd the tutorial I have been using, simply uses
I'm currently learning apex (using the Force.com IDE), and I'm running into some trouble
I currently learning about scrum and want to learn from experienced professionals in the
So I am currently learning C++ and decided to make a program that tests
I'm currently learning to develop for the .net compact framework using c# in VS2008
I'm currently learning about concurrency in C++ and came across using a vector of
As I'm currently learning Django / Python, I've not really been using the concept
I'm currently learning libgmp and to that end I'm writing a small program which
I am currently learning ASP.NET MVC and I have followed Stephen Walther's tutorial: ASP.NET
I'm currently learning ASP.NET MVC and using Nhibernate. I would like to use Cascading

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.