[Matroska-devel] Difficulties to link libebml with DevCpp

Zen aaa at aaaa.com
Wed Oct 19 23:22:45 CEST 2005


I try (and succeed, but with difficulties) to compile and link libebml 
with DevCpp 4.9.9.2 (MinGW32 3.4)

The project files are out of date (if you are interested, I can send you 
updated files), but I have difficulties to link if I create a library 
with all ebml files :
- with all files in one library, I have link errors I don't understand 
(linker search for EbmlSInteger class when linking Matroska library, but 
the EbmlSInteger.cpp is included in the project of Ebml library!)
- with all files in one library, AND one more library with only 
EbmlSInteger.cpp, when I link with the BOTH libraries, this is OK.

Did you already have this kind of problem?
Note : libebml works fine with Borland C++ Builder 6 and MS Visual 
Studio 2005 beta, libmatroska works fine with Borland C++ Builder 6, MS 
Visual Studio 2005 beta, and DevCpp 4.9.9.2.


Zen
http://mediainfo.sourceforge.net




Below my linking problems :
Compiler: Default compiler
Building Makefile:
"E:\Personnel\Programmation\MediaInfo\Project\DevCpp\GUI\Makefile.win"
Executing  make...
make.exe -f
"E:\Personnel\Programmation\MediaInfo\Project\DevCpp\GUI\Makefile.win"
all
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
../../../../Shared/Library/GCC_MinGW32/Matroska.a(KaxTag.o)(.rdata$_ZTVN
11libmatroska19KaxTagPopularimeterE[vtable for
libmatroska::KaxTagPopularimeter]+0x20):KaxTag.cpp: undefined reference
to `libebml::EbmlSInteger::UpdateSize(bool, bool)'
../../../../Shared/Library/GCC_MinGW32/Matroska.a(KaxTag.o)(.rdata$_ZTVN
11libmatroska19KaxTagPopularimeterE[vtable for
libmatroska::KaxTagPopularimeter]+0x28):KaxTag.cpp: undefined reference
to `libebml::EbmlSInteger::ReadData(libebml::IOCallback&,
libebml::ScopeMode)'
../../../../Shared/Library/GCC_MinGW32/Matroska.a(KaxTag.o)(.rdata$_ZTVN
11libmatroska19KaxTagPopularimeterE[vtable for
libmatroska::KaxTagPopularimeter]+0x48):KaxTag.cpp: undefined reference
to `libebml::EbmlSInteger::RenderData(libebml::IOCallback&, bool, bool)'
../../../../Shared/Library/GCC_MinGW32/Matroska.a(KaxTag.o)(.text$_ZN11l
ibmatroska19KaxTagPopularimeter6CreateEv[libmatroska::KaxTagPopularimete
r::Create()]+0x5c):KaxTag.cpp: undefined reference to
`libebml::EbmlSInteger::EbmlSInteger()'
../../../../Shared/Library/GCC_MinGW32/Matroska.a(KaxTag.o)(.text$_ZNK11
libmatroska19KaxTagPopularimeter5CloneEv[libmatroska::KaxTagPopularimete
r::Clone() const]+0x66):KaxTag.cpp: undefined reference to
`libebml::EbmlSInteger::EbmlSInteger(libebml::EbmlSInteger const&)'
../../../../Shared/Library/GCC_MinGW32/Matroska.a(KaxBlockData.o)(.text+
0x1af):KaxBlockData.cpp: undefined reference to
`libebml::EbmlSInteger::UpdateSize(bool, bool)'
../../../../Shared/Library/GCC_MinGW32/Matroska.a(KaxBlockData.o)(.rdata
$_ZTVN11libmatroska17KaxReferenceBlockE[vtable for
libmatroska::KaxReferenceBlock]+0x28):KaxBlockData.cpp: undefined
reference to `libebml::EbmlSInteger::ReadData(libebml::IOCallback&,
libebml::ScopeMode)'
../../../../Shared/Library/GCC_MinGW32/Matroska.a(KaxBlockData.o)(.rdata
$_ZTVN11libmatroska17KaxReferenceBlockE[vtable for
libmatroska::KaxReferenceBlock]+0x48):KaxBlockData.cpp: undefined
reference to `libebml::EbmlSInteger::RenderData(libebml::IOCallback&,
bool, bool)'
../../../../Shared/Library/GCC_MinGW32/Matroska.a(KaxBlockData.o)(.rdata
$_ZTVN11libmatroska19KaxReferenceVirtualE[vtable for
libmatroska::KaxReferenceVirtual]+0x20):KaxBlockData.cpp: undefined
reference to `libebml::EbmlSInteger::UpdateSize(bool, bool)'
../../../../Shared/Library/GCC_MinGW32/Matroska.a(KaxBlockData.o)(.rdata
$_ZTVN11libmatroska19KaxReferenceVirtualE[vtable for
libmatroska::KaxReferenceVirtual]+0x28):KaxBlockData.cpp: undefined
reference to `libebml::EbmlSInteger::ReadData(libebml::IOCallback&,
libebml::ScopeMode)'
../../../../Shared/Library/GCC_MinGW32/Matroska.a(KaxBlockData.o)(.rdata
$_ZTVN11libmatroska19KaxReferenceVirtualE[vtable for
libmatroska::KaxReferenceVirtual]+0x48):KaxBlockData.cpp: undefined
reference to `libebml::EbmlSInteger::RenderData(libebml::IOCallback&,
bool, bool)'
../../../../Shared/Library/GCC_MinGW32/Matroska.a(KaxBlockData.o)(.text$
_ZN11libmatroska17KaxReferenceBlock6CreateEv[libmatroska::KaxReferenceBl
ock::Create()]+0x5c):KaxBlockData.cpp: undefined reference to
`libebml::EbmlSInteger::EbmlSInteger()'
../../../../Shared/Library/GCC_MinGW32/Matroska.a(KaxBlockData.o)(.text$
_ZNK11libmatroska17KaxReferenceBlock5CloneEv[libmatroska::KaxReferenceBl
ock::Clone() const]+0x66):KaxBlockData.cpp: undefined reference to
`libebml::EbmlSInteger::EbmlSInteger(libebml::EbmlSInteger const&)'
../../../../Shared/Library/GCC_MinGW32/Matroska.a(KaxBlockData.o)(.text$
_ZN11libmatroska19KaxReferenceVirtual6CreateEv[libmatroska::KaxReference
Virtual::Create()]+0x5c):KaxBlockData.cpp: undefined reference to
`libebml::EbmlSInteger::EbmlSInteger()'
../../../../Shared/Library/GCC_MinGW32/Matroska.a(KaxBlockData.o)(.text$
_ZNK11libmatroska19KaxReferenceVirtual5CloneEv[libmatroska::KaxReference
Virtual::Clone() const]+0x66):KaxBlockData.cpp: undefined reference to
`libebml::EbmlSInteger::EbmlSInteger(libebml::EbmlSInteger const&)'
collect2: ld returned 1 exit status make.exe: ***
[../../../Release/GCC_MinGW32/GUI/MediaInfo.exe] Error 1 Execution
terminated






More information about the Matroska-devel mailing list