[vlc-devel] Help for linking projectM

xxcv xxcv07 at gmail.com
Sat Dec 5 03:27:06 CET 2009


xxcv wrote:
> Jean-Baptiste Kempf wrote:
>> Hello guys,
>>
>> I am asking a linking question because I am a bit stuck.
>>
>> When linking the projectM module, I receive messages like this:
>> /usr/win32/lib/libprojectM.a(projectM.obj):projectM.cpp:(.text+0x8a9):
>> undefined reference to `Renderer::SetPipeline(Pipeline&)'
>> /usr/win32/lib/libprojectM.a(projectM.obj):projectM.cpp:(.text+0xe57):
>> undefined reference to `BeatDetect::detectFromSamples()'
>> /usr/win32/lib/libprojectM.a(projectM.obj):projectM.cpp:(.text+0xf48):
>> undefined reference to `Renderer::RenderFrame(Pipeline const&,
>> PipelineContext const&)'
>> see:  http://vlc.pastebin.com/m6b995602
>>
>> It seems obvious, though, when using i586-mingw32msvc-objdump -t on
>> libprojectM.a, I have
>> [530](sec  0)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x00000000
>> __ZN8Renderer11SetPipelineER8Pipeline
>> [503](sec  0)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x00000000
>> __ZN10BeatDetect17detectFromSamplesEv
>> [513](sec  0)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x00000000
>> __ZN8Renderer11RenderFrameERK8PipelineRK15PipelineContext
>>
>> Any idea?
>>
>> Best Regards,
>>
>>   
> In archive libprojectM.a:
>
> BeatDetect.o:     file format pe-x86-64
>
> SYMBOL TABLE:
> [  0](sec -2)(fl 0x00)(ty   0)(scl 103) (nx 1) 0x0000000000000000 
> BeatDetect.cpp
> File
> [  2](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 1) 0x0000000000000000 
> __ZN10BeatDetectC2EP3PCM
> AUX tagndx 0 ttlsiz 0x0 lnnos 0 next 0
> [  4](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x0000000000000270 
> __ZN10BeatDetectC1EP3PCM
> [  5](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x00000000000004e0 
> __ZN10BeatDetectD2Ev
> [  6](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x00000000000004f0 
> __ZN10BeatDetectD1Ev
> [  7](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x0000000000000500 
> __ZN10BeatDetect5resetEv
> [  8](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x0000000000000530 
> __ZN10BeatDetect11getBeatValsEPfS0_
> [  9](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x0000000000000b00 
> __ZN10BeatDetect17detectFromSamplesEv
> [ 10](sec  1)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x0000000000000000 .text
> AUX scnlen 0xb3c nreloc 14 nlnno 0
> [ 12](sec  2)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x0000000000000000 .data
> AUX scnlen 0x8 nreloc 1 nlnno 0
> [ 14](sec  3)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x0000000000000000 .bss
> AUX scnlen 0x0 nreloc 0 nlnno 0
> [ 16](sec  4)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x0000000000000000 .rdata
> AUX scnlen 0x3c nreloc 0 nlnno 0
> [ 18](sec  5)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x0000000000000000 
> .eh_frame
> AUX scnlen 0x148 nreloc 8 nlnno 0
> [ 20](sec  0)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x0000000000000000 
> ___gxx_personality_v0
>
> Noticed I have got few more zeros then you...
> This is not 2.0.0 but I will try and compile it shortly.
>
>
In archive libprojectM.a:

BeatDetect.o:     file format pe-x86-64

SYMBOL TABLE:
[  0](sec -2)(fl 0x00)(ty   0)(scl 103) (nx 1) 0x0000000000000000 
BeatDetect.cpp
File
[  2](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 1) 0x0000000000000000 
__ZN10BeatDetectC2EP3PCM
AUX tagndx 0 ttlsiz 0x0 lnnos 0 next 0
[  4](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x0000000000000260 
__ZN10BeatDetectC1EP3PCM
[  5](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x00000000000004c0 
__ZN10BeatDetectD2Ev
[  6](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x00000000000004d0 
__ZN10BeatDetectD1Ev
[  7](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x00000000000004e0 
__ZN10BeatDetect5resetEv
[  8](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x0000000000000500 
__ZN10BeatDetect11getBeatValsEPfS0_
[  9](sec  1)(fl 0x00)(ty  20)(scl   2) (nx 0) 0x0000000000000a70 
__ZN10BeatDetect17detectFromSamplesEv
[ 10](sec  1)(fl 0x00)(ty  20)(scl   3) (nx 0) 0x0000000000000aa0 
__GLOBAL__I__ZN10BeatDetectC2EP3PCM
[ 11](sec  3)(fl 0x00)(ty   0)(scl   3) (nx 0) 0x0000000000000000 
__ZL23PROJECTM_FILE_EXTENSION
[ 12](sec  3)(fl 0x00)(ty   0)(scl   3) (nx 0) 0x0000000000000008 
__ZL23MILKDROP_FILE_EXTENSION
[ 13](sec  3)(fl 0x00)(ty   0)(scl   3) (nx 0) 0x0000000000000010 
__ZL25PROJECTM_MODULE_EXTENSION
[ 14](sec  1)(fl 0x00)(ty  20)(scl   3) (nx 0) 0x0000000000000b30 ___tcf_2
[ 15](sec  1)(fl 0x00)(ty  20)(scl   3) (nx 0) 0x0000000000000b80 ___tcf_1
[ 16](sec  1)(fl 0x00)(ty  20)(scl   3) (nx 0) 0x0000000000000bd0 ___tcf_0
[ 17](sec  1)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x0000000000000000 .text
AUX scnlen 0xc1d nreloc 36 nlnno 0
[ 19](sec  2)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x0000000000000000 .data
AUX scnlen 0x8 nreloc 1 nlnno 0
[ 21](sec  3)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x0000000000000000 .bss
AUX scnlen 0x18 nreloc 0 nlnno 0
[ 23](sec  4)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x0000000000000000 .rdata
AUX scnlen 0x4c nreloc 0 nlnno 0
[ 25](sec  5)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x0000000000000000 
.gcc_except_table
AUX scnlen 0x15 nreloc 0 nlnno 0
[ 27](sec  6)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x0000000000000000 .ctors
AUX scnlen 0x8 nreloc 1 nlnno 0
[ 29](sec  7)(fl 0x00)(ty   0)(scl   3) (nx 1) 0x0000000000000000 .eh_frame
AUX scnlen 0x1a8 nreloc 13 nlnno 0

libprojectM-2.0.0!
-rw-r--r-- 1 slack wheel 1018270 2009-12-05 13:05 libprojectM.a




More information about the vlc-devel mailing list