Hi,
I was trying to build rtl-sdr on windows using mingw64 and stumbled upon the error described here [1]
[ 40%] Building C object src/CMakeFiles/rtl_adsb.dir/rtl_adsb.c.o Linking C executable rtl_adsb.exe libconvenience_static.a(convenience.c.o):convenience.c:(.text+0x1e5): undefined reference to `rtlsdr_set_tuner_gain_mode' libconvenience_static.a(convenience.c.o):convenience.c:(.text+0x1e5): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `rtlsdr_set_tuner_gain_mode' libconvenience_static.a(convenience.c.o):convenience.c:(.text+0x1fb): undefined reference to `rtlsdr_get_tuner_gains' libconvenience_static.a(convenience.c.o):convenience.c:(.text+0x1fb): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `rtlsdr_get_tuner_gains'
and so on....
I was able to build rtl-sdr using the attached patch. I exchange the order of linking libraries.
1: http://lists.osmocom.org/pipermail/osmocom-sdr/2015-April/000048.html
Greetings, Momchil