http client in proxygen?
<p>hi i am using proxygen by facebook to create a simple hhtpclient . i am trying to run  their default httpclient example. I am using the following command to build it:</p>

<pre><code> g++ -std=c++11 -o my_echo   CurlClient.o CurlClientMain.o -lproxygenhttpserver -lfolly -lglog -lgflags -pthread
</code></pre>

<p>but i am getting the following error:</p>

<pre><code>CurlClient.o: In function `CurlService::CurlClient::connectSuccess(proxygen::HTTPUpstreamSession*)':
/home/kshitij/proxygen/httpclient/samples/curl/CurlClient.cpp:69: undefined reference to `proxygen::HTTPUpstreamSession::newTransaction(proxygen::HTTPTransactionHandler*)'
CurlClientMain.o: In function `main':
/home/kshitij/proxygen/httpclient/samples/curl/CurlClientMain.cpp:91: undefined reference to `proxygen::HTTPConnector::HTTPConnector(proxygen::HTTPConnector::Callback*, folly::HHWheelTimer*)'
/home/kshitij/proxygen/httpclient/samples/curl/CurlClientMain.cpp:102: undefined reference to `proxygen::HTTPConnector::connect(folly::EventBase*, folly::SocketAddress const&amp;, std::chrono::duration&lt;long, std::ratio&lt;1l, 1000l&gt; &gt;, std::map&lt;folly::AsyncSocket::OptionKey, int, std::less&lt;folly::AsyncSocket::OptionKey&gt;, std::allocator&lt;std::pair&lt;folly::AsyncSocket::OptionKey const, int&gt; &gt; &gt; const&amp;, folly::SocketAddress const&amp;)'
/home/kshitij/proxygen/httpclient/samples/curl/CurlClientMain.cpp:91: undefined reference to `proxygen::HTTPConnector::~HTTPConnector()'
/home/kshitij/proxygen/httpclient/samples/curl/CurlClientMain.cpp:99: undefined reference to `proxygen::HTTPConnector::connectSSL(folly::EventBase*, folly::SocketAddress const&amp;, std::shared_ptr&lt;folly::SSLContext&gt; const&amp;, ssl_session_st*, std::chrono::duration&lt;long, std::ratio&lt;1l, 1000l&gt; &gt;, std::map&lt;folly::AsyncSocket::OptionKey, int, std::less&lt;folly::AsyncSocket::OptionKey&gt;, std::allocator&lt;std::pair&lt;folly::AsyncSocket::OptionKey const, int&gt; &gt; &gt; const&amp;, folly::SocketAddress const&amp;, std::string const&amp;)'
/home/kshitij/proxygen/httpclient/samples/curl/CurlClientMain.cpp:91: undefined reference to `proxygen::HTTPConnector::~HTTPConnector()'
collect2: error: ld returned 1 exit status
</code></pre>

<p>what could be the possible error. correct me if i am building it the wrong way.</p>