[Matroska-devel] How to use Core parser lib

Armin Müller a1muelle at edu.uni-klu.ac.at
Tue Jul 12 10:49:46 CEST 2005


Hello,

I tried to comile the dumptrack.c demo (on SuSE Linux 9.3) but did  
not succeed. It seems thst the comiling went fine, but the linking  
process gives several errors. I think that the linking of the zlib is  
involved, but i'm not quite sure.

@Mike: can you please tell how you comile the dumptrack.c or include  
the Makefile in the .zip?

armin at kermit:~/MatroskaParser> gcc dumptrack.c
dumptrack.c: In function `main':
dumptrack.c:157: warning: assignment from incompatible pointer type
dumptrack.c:158: warning: assignment from incompatible pointer type
dumptrack.c:159: warning: assignment from incompatible pointer type
dumptrack.c:160: warning: assignment from incompatible pointer type
dumptrack.c:161: warning: assignment from incompatible pointer type
dumptrack.c:162: warning: assignment from incompatible pointer type
dumptrack.c:163: warning: assignment from incompatible pointer type
dumptrack.c:164: warning: assignment from incompatible pointer type
/tmp/ccW5n2iH.o(.text+0x31b): In function `main':
dumptrack.c: undefined reference to `mkv_OpenEx'
/tmp/ccW5n2iH.o(.text+0x37c):dumptrack.c: undefined reference to  
`mkv_GetNumTracks'
/tmp/ccW5n2iH.o(.text+0x39d):dumptrack.c: undefined reference to  
`mkv_GetTrackInfo'
/tmp/ccW5n2iH.o(.text+0x41a):dumptrack.c: undefined reference to  
`mkv_GetNumTracks'
/tmp/ccW5n2iH.o(.text+0x463):dumptrack.c: undefined reference to  
`mkv_SetTrackMask'
/tmp/ccW5n2iH.o(.text+0x477):dumptrack.c: undefined reference to  
`mkv_GetTrackInfo'
/tmp/ccW5n2iH.o(.text+0x4a6):dumptrack.c: undefined reference to  
`cs_Create'
/tmp/ccW5n2iH.o(.text+0x50f):dumptrack.c: undefined reference to  
`mkv_ReadFrame'
/tmp/ccW5n2iH.o(.text+0x545):dumptrack.c: undefined reference to  
`cs_NextFrame'
/tmp/ccW5n2iH.o(.text+0x562):dumptrack.c: undefined reference to  
`cs_ReadData'
/tmp/ccW5n2iH.o(.text+0x585):dumptrack.c: undefined reference to  
`cs_GetLastError'
/tmp/ccW5n2iH.o(.text+0x74f):dumptrack.c: undefined reference to  
`mkv_Close'
collect2: ld returned 1 exit status




regards,
Armin




More information about the Matroska-devel mailing list