[Matroska-devel] Difficulties to link libebml with DevCpp

Moritz Bunkus moritz at bunkus.org
Thu Oct 20 08:55:30 CEST 2005


Hey,

On Wednesday 19 October 2005 23:22, Zen wrote:

> The project files are out of date (if you are interested, I can send you
> updated files),

That would be nice.

> g++.exe ../../../Source/GUI/WxWidgets/GUI_Main.o
> ../../../Source/GUI/WxWidgets/App.o MediaInfo_private.res -o
> "..\..\..\Release\GCC_MinGW32\GUI\MediaInfo.exe" -L"C:/Dev-Cpp/lib"
> -L"C:/Dev-Cpp/lib/msw-unicode-2.6.2/Static" -mwindows -mwindows
> -lwx_mswu_fl-2.6 -lwx_mswu_mmedia-2.6 -lwx_mswu_plot-2.6
> -lwx_mswu_stc-2.6 -lwx_mswu_svg-2.6 -lwx_mswu_gizmos_xrc-2.6
> -lwx_mswu_gizmos-2.6 -lwx_mswu_ogl-2.6 -lwx_mswu_deprecated-2.6
> -lwx_mswu_animate-2.6 -lwx_mswu_gl-2.6 -lopengl32 -lglu32
> -lwx_mswu_xrc-2.6 -lwx_mswu_html-2.6 -lwx_mswu_dbgrid-2.6
> -lwx_baseu_odbc-2.6 -lwx_mswu_adv-2.6 -lwx_mswu_qa-2.6
> -lwx_mswu_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6
> -lwx_mswu_media-2.6 -lwxtiff-2.6 -lwxjpeg-2.6 -lwxpng-2.6 -lwxzlib-2.6
> -lwxregexu-2.6 -lwxexpat-2.6 -lrpcrt4 -loleaut32 -lole32 -luuid -lodbc32
> -lole32 -loleaut32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32
> -lctl3d32 -ladvapi32 -lwsock32 -lgdi32
> ../../../../MediaInfoLib/Release/GCC_MinGW32/Library/MediaInfoLib.a
> ../../../../Shared/Library/GCC_MinGW32/Unicows.a
> ../../../../Shared/Library/GCC_MinGW32/ZenLib.a
> ../../../../Shared/Library/GCC_MinGW32/ZLib.a
> ../../../../Shared/Library/GCC_MinGW32/WxBase.a
> ../../../../Shared/Library/GCC_MinGW32/WxWidgets_Core.a
> ../../../../Shared/Library/GCC_MinGW32/Ebml.a
> ../../../../Shared/Library/GCC_MinGW32/Matroska.a

Usually linkers care about the order in which you specify the
libraries. It tries to resolve all unknown symbols from all the
following libraries and discards all unneeded symbols from the current
library. So when it reaches Ebml.a the stuff from Matroska.a hasn't been
found yet, so the linker discards everything from Ebml.a. Next if
examines Matroska.a and needs all those symbols from Ebml.a, but those
have already been discarded. The solution should be to swap Ebml.a and
Matroska.a.

Mosu

-- 
If Darl McBride was in charge, he'd probably make marriage
unconstitutional too, since clearly it de-emphasizes the commercial
nature of normal human interaction, and probably is a major impediment
to the commercial growth of prostitution. - Linus Torvalds

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.matroska.org/pipermail/matroska-devel/attachments/20051020/933c75bc/attachment.pgp>


More information about the Matroska-devel mailing list