[x265] v1.7+297: Unable to build multilib EXE, linker error

Mario *LigH* Rohkrämer contact at ligh.de
Tue Jul 7 13:36:10 CEST 2015


OK, compiling works now.

But (if I didn't make another mistake) the created EXE does not export any  
functions (according to Microsoft PEScanner), and a DLL is still built.


Am 07.07.2015, 10:53 Uhr, schrieb Mario *LigH* Rohkrämer <contact at ligh.de>:

> Sorry, this is probably my fault, I missed that the cmake parameters  
> changed to allow a linkable multilib EXE.
>
> I'll update my own multilib build script to the current parameter sets  
> and test if it works now...
>
>
> Am 07.07.2015, 10:40 Uhr, schrieb Mario *LigH* Rohkrämer  
> <contact at ligh.de>:
>
>> Linking the multilib EXE fails:
>>
>>
>> GCC 4.8.2 Win32:
>> +----
>> CMakeFiles/cli.dir/objects.a(x265.cpp.obj):x265.cpp:(.text+0x1b88):  
>> undefined reference to `x265_api_get_63'
>> CMakeFiles/cli.dir/objects.a(x265.cpp.obj):x265.cpp:(.text+0x1f20):  
>> undefined reference to `x265_api_get_63'
>> (...)/ld.exe: CMakeFiles/cli.dir/objects.a(x265.cpp.obj): bad reloc  
>> address 0x14 in section `.text.unlikely'
>> +----
>>
>> GCC 4.8.2 Win64:
>> +----
>> CMakeFiles/cli.dir/objects.a(x265.cpp.obj):x265.cpp:(.text+0x1b03):  
>> undefined reference to `x265_api_get_63'
>> CMakeFiles/cli.dir/objects.a(x265.cpp.obj):x265.cpp:(.text+0x1e95):  
>> undefined reference to `x265_api_get_63'
>> (...)/ld.exe: CMakeFiles/cli.dir/objects.a(x265.cpp.obj): bad reloc  
>> address 0x0 in section `.pdata'
>> +----
>>
>>
>> GCC 4.9.2 Win32:
>> +----
>> CMakeFiles/cli.dir/objects.a(x265.cpp.obj):x265.cpp:(.text+0x1cc8):  
>> undefined reference to `x265_api_get_63'
>> CMakeFiles/cli.dir/objects.a(x265.cpp.obj):x265.cpp:(.text+0x208c):  
>> undefined reference to `x265_api_get_63'
>> (....)/ld.exe: CMakeFiles/cli.dir/objects.a(x265.cpp.obj): bad reloc  
>> address 0x13 in section `.text$_Z6printfPKcz[__Z6printfPKcz]'
>> (....)/ld.exe: final link failed: Invalid operation
>> +----
>>
>> GCC 4.9.2 Win64:
>> +----
>> CMakeFiles/cli.dir/objects.a(x265.cpp.obj):x265.cpp:(.text+0x1bfa):  
>> undefined reference to `x265_api_get_63'
>> CMakeFiles/cli.dir/objects.a(x265.cpp.obj):x265.cpp:(.text+0x1fbb):  
>> undefined reference to `x265_api_get_63'
>> (...)/ld.exe: CMakeFiles/cli.dir/objects.a(x265.cpp.obj): bad reloc  
>> address 0x0 in section `.pdata'
>> (...)/ld.exe: final link failed: Invalid operation
>> +----
>>
>
>


-- 

Fun and success!
Mario *LigH* Rohkrämer
mailto:contact at ligh.de
 


More information about the x265-devel mailing list