So I have some C/C++ library compiled into .a files. library is ffmpeg (52). Could any one provide me with detailed instructions on how to use it in visual studio 2008 (how to link it to VS so that compiler would find it and so on)?
Asked
Active
Viewed 5,680 times
4
-
See http://ffmpeg.arrozcru.org/wiki/index.php?title=Main_Page : it is **not** a C/C++ library. ffmpeg is emphatically a C99 library, and MSVC++ is **not** a C99 compiler. Hence the pain. – MSalters Dec 09 '10 at 09:42
2 Answers
0
Please rename your file from .a to .lib, and place it along with the source files of the project.
Now go to project's properties and in the VS C++ include directories add the path of the header/include files for that lib.
To use the symbols in a source file write
#pragma comment(lib, "your library's name")

Charlie
- 4,197
- 5
- 42
- 59

Rampal Chaudhary
- 707
- 1
- 8
- 18