Problem with new spark's libray

Hi,
I have an issue while using blynk’s library for spark. I open the example sparkcore.ino, and I get those errors when i compile:

In file included from blynk/BlynkSparkCore.h:16:0,
from blynk/BlynkSimpleSparkCore.h:14,
from sparkcore.cpp:18:
blynk/BlynkApiSparkCore.h:74:6: warning: #warning “analogInputToDigitalPin not defined => Named analog pins will not work” [-Wcpp]
#warning “analogInputToDigitalPin not defined => Named analog pins will not work”
^
In file included from blynk/BlynkSparkCore.h:17:0,
from blynk/BlynkSimpleSparkCore.h:14,
from sparkcore.cpp:18:
blynk/BlynkProtocol.h: In member function ‘int BlynkProtocol::readHeader(BlynkHeader&)’:
This looks like an error in blynk library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
blynk/BlynkProtocol.h:325:34: error: there are no arguments to ‘ntohs’ that depend on a template parameter, so a declaration of ‘ntohs’ must be available [-fpermissive]
hdr.msg_id = ntohs(hdr.msg_id);
^

blynk/BlynkProtocol.h:325:34: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
This looks like an error in blynk library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
blynk/BlynkProtocol.h:326:34: error: there are no arguments to ‘ntohs’ that depend on a template parameter, so a declaration of ‘ntohs’ must be available [-fpermissive]
hdr.length = ntohs(hdr.length);
^

blynk/BlynkProtocol.h: In member function ‘void BlynkProtocol::sendCmd(uint8_t, uint16_t, const void*, size_t, const void*, size_t)’:
This looks like an error in blynk library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
blynk/BlynkProtocol.h:357:27: error: there are no arguments to ‘htons’ that depend on a template parameter, so a declaration of ‘htons’ must be available [-fpermissive]
hdr->msg_id = htons(id);
^

This looks like an error in blynk library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
blynk/BlynkProtocol.h:358:39: error: there are no arguments to ‘htons’ that depend on a template parameter, so a declaration of ‘htons’ must be available [-fpermissive]
hdr->length = htons(length+length2);
^

blynk/BlynkProtocol.h: In instantiation of ‘void BlynkProtocol::sendCmd(uint8_t, uint16_t, const void*, size_t, const void*, size_t) [with Transp = BlynkTransportSparkCore; uint8_t = unsigned char; uint16_t = short unsigned int; size_t = unsigned int]’:
blynk/WidgetBridge.h:30:78: required from here
This looks like an error in blynk library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
blynk/BlynkProtocol.h:357:27: error: ‘htons’ was not declared in this scope
hdr->msg_id = htons(id);
^

This looks like an error in blynk library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
blynk/BlynkProtocol.h:358:39: error: ‘htons’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
hdr->length = htons(length+length2);
^

blynk/BlynkProtocol.h:357:27: note: ‘htons’ declared here, later in the translation unit
hdr->msg_id = htons(id);
^
blynk/BlynkProtocol.h: In instantiation of ‘int BlynkProtocol::readHeader(BlynkHeader&) [with Transp = BlynkTransportSparkCore]’:
blynk/BlynkProtocol.h:206:35: required from ‘bool BlynkProtocol::processInput() [with Transp = BlynkTransportSparkCore]’
blynk/BlynkProtocol.h:132:31: required from ‘bool BlynkProtocol::run(bool) [with Transp = BlynkTransportSparkCore]’
sparkcore.cpp:67:15: required from here
This looks like an error in blynk library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
blynk/BlynkProtocol.h:325:34: error: ‘ntohs’ was not declared in this scope
hdr.msg_id = ntohs(hdr.msg_id);
^

This looks like an error in blynk library. Would you like to create an issue on GitHub to let the author know?
CREATE ISSUE
blynk/BlynkProtocol.h:326:34: error: ‘ntohs’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
hdr.length = ntohs(hdr.length);
^

blynk/BlynkProtocol.h:325:34: note: ‘ntohs’ declared here, later in the translation unit
hdr.msg_id = ntohs(hdr.msg_id);
^
make[1]: *** […/build/target/user/platform-6sparkcore.o] Error 1
make: *** [user] Error 2

You have to make sure you’re using Blynk library v0.3.3 or later.
What hardware are you using? please be more specific.

Closed as a duplicate of Blynk Photon Library not loading