User forums > Using Code::Blocks
undefined reference to .. linking ffmpeg libraries
(1/1)
forums_mp:
I'm getting 'reference to .... ' (ex: 'Undefined reference to av_free_packet') when the linker attempts to link ffmpeg libraries.
My approach is as follows:
Project Settings -> Build Options -> Linker Settings
Link Libraries
..\..\..\..\..\ffmpeg-shared-lib-64\lib\swscale.lib
..\..\..\..\..\ffmpeg-shared-lib-64\lib\avcodec.lib
..\..\..\..\..\ffmpeg-shared-lib-64\lib\avdevice.lib
..\..\..\..\..\ffmpeg-shared-lib-64\lib\avformat.lib
..\..\..\..\..\ffmpeg-shared-lib-64\lib\avutil.lib
Ideas, help welcomed. Thanks
stahta01:
--- Quote from: forums_mp on March 25, 2011, 02:30:13 am ---Link Libraries
..\..\..\..\..\ffmpeg-shared-lib-64\lib\swscale.lib
..\..\..\..\..\ffmpeg-shared-lib-64\lib\avcodec.lib
..\..\..\..\..\ffmpeg-shared-lib-64\lib\avdevice.lib
..\..\..\..\..\ffmpeg-shared-lib-64\lib\avformat.lib
..\..\..\..\..\ffmpeg-shared-lib-64\lib\avutil.lib
--- End quote ---
Try instead
Link Libraries
--- Code: ---swscale.lib
avcodec.lib
avdevice.lib
avformat.lib
avutil.lib
--- End code ---
And under Linker search folders put path to the libraries
--- Code: ---..\..\..\..\..\ffmpeg-shared-lib-64\lib
--- End code ---
Turn on FULL Compiler logging to see what Code::Blocks sends the compiler
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
Tim S.
Navigation
[0] Message Index
Go to full version