VirtualWire.h problems

I know it may sounds like a highly repeated question or the answer may be dumb, but I can't find any solution to my problem.

Linker says I'm using but not defining a function.

Here's the full error:

Arduino:1.8.1 (Windows 10), TD: 1.36, Tarjeta:"Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from
C:\Users\DISTOR~1\Documents\Arduino\ProtocolTest\ProtocolTest.ino:1:0:

C:\Users\DISTOR~1\Documents\Arduino\libraries\VirtualWire/VirtualWire.h:276:27: warning: inline function 'uint8_t vw_get_message(uint8_t*, uint8_t*)' used but never defined

extern inline uint8_t vw_get_message(uint8_t* buf, uint8_t* len);

^

C:\Users\DISTOR~1\AppData\Local\Temp\ccxhpULj.ltrans0.ltrans.o: In function `loop':

C:\Users\DISTOR~1\Documents\Arduino\ProtocolTest/ProtocolTest.ino:28: undefined reference to `vw_get_message'

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compilaciĆ³n en tarjeta Arduino/Genuino Mega or Mega 2560.

But the functions is declared in VirtualWire.h:276 as extern inline uint8_t vw_get_message(uint8_t* buf, uint8_t* len); and defined in VirtualWire.cpp at line 533.

https://pastebin.com/fH7JDdjE VirtualWire.cpp
https://pastebin.com/rjECHYMp VirtualWire.h
https://pastebin.com/Scen4wzG Program

Thanks in advance for you help
Jose Blanco

Have you tried removing ALL copies of the VirtualWire library (including the .zip files) from your computer, and then downloading/installing a fresh, original copy of it?