You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/bin/ld: //usr/local/lib/libevent.a(buffer.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
//usr/local/lib/libevent.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
$ ./example_http_client_request01
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0306 11:45:09.464159 13230 inner_pre.cc:37] ignore SIGPIPE
I0306 11:45:09.464896 13230 client01.cc:30] Do http request
I0306 11:45:09.493073 13231 client01.cc:14] http_code=200 [ok
]
I0306 11:45:09.493124 13231 client01.cc:16] HTTP HEADER Connection=close
I0306 11:45:09.493242 13231 event_loop.cc:103] EventLoop is stopping now, tid=140722561709824
I0306 11:45:09.993921 13231 event_loop.cc:93] EventLoop stopped, tid: 140722561709824
I0306 11:45:09.994107 13230 client01.cc:38] EventLoopThread stopped.
Run a HTTP server example:
$ ./example_httpecho
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0306 12:15:31.703927 21228 inner_pre.cc:37] ignore SIGPIPE
I0306 12:15:31.706221 21228 http_server.cc:99] http server is running
And in another console:
$ curl "http://127.0.0.1:9009/echo" -d "Hello, world"
Hello, world
Run a TCP echo server example:
$ ./example_tcpecho
And in another console:
$ telnet 127.0.0.1 9099
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Here we can type any words and we will find it is responsed by our TCP echo server.
1. libevent
2. glog
3. boost --文档写着可选,实际上不是
4. gflags (optional)
5. evpp
5.1 Download the source code of evpp
5.2 Compile and run unit tests.
5.3 Run the examples
Run a HTTP client example:
Run a HTTP server example:
And in another console:
Run a TCP echo server example:
And in another console:
Here we can type any words and we will find it is responsed by our TCP echo server.
5.4 Other
If you want to compile evpp on Windows using Microsoft Visual Studio 2015, please see quick_start_windows_with_visualstudio.md
问题
The text was updated successfully, but these errors were encountered: