このリンク先のコードをコンパイルしようとすると,下記のようなエラーが出てコンパイル出来ません。Opensslのバージョンが1.0.2以上じゃないとalpnが使えないというのは、調べた結果わかったので、この方法で1.0.2dにあげたのですがダメでした。
どなたか解決方法知っている方がいましたら教えて下さい。
ubuntuのバージョンは、14.04.3です。

root@ubuntu:~$ g++ -g -Wall -I/usr/local/include -lssl -lcrypto -lstdc++ -o hellohttp2.o hellohttp2.cpp
hellohttp2.cpp: In function ‘int main(int, char**)’:
hellohttp2.cpp:133:49: error: ‘SSL_set_alpn_protos’ was not declared in this scope
SSL_set_alpn_protos(_ssl, protos, protos_len);
                                            ^
hellohttp2.cpp:146:54: error: ‘SSL_get0_alpn_selected’ was not declared in this scope
SSL_get0_alpn_selected(_ssl, &ret_alpn, &alpn_len);
                                                 ^