Comments (5)
Hi there! Thank you for using our project.
I think I could help with the later question.
This is your command:
g++ -g -std=c++11 -Wall -I./sogou-workflow/include -L./sogou-workflow/lib -l:libworkflow.a src/main.cc -o src/main.o
Here are my two opinions:
-
src/main.cc
should be put before-l:libworkflow.a
. Library order does matter when using g++. See Here for more details. -
-lssl -lcrypto -lpthread
is needed following-l:libworkflow.a
. Workflow needs OpenSSL and PThreads.
So, I think the right command was:
g++ -g -std=c++11 -Wall src/main.cc -I./sogou-workflow/include/ -L./sogou-workflow/lib -l:libworkflow.a -lssl -lcrypto -lpthread -o src/main.o
In addition, I have two other suggestions:
-
g++
outputs an executable file, somain.o
might not be a good name. Usually.o
file is created byg++ -c
. -
It is not necessary to rename
_include
and_lib
dirs undersogou-workflow
. But it is all right if you like it, not a problem.
If you got other problems, please don't be hesitate to contact us. Thank you.
from workflow.
My fault.
from workflow.
Thanks @sonullx for quick reply. "main.o" is just for my test code. In formal project, I won't use the name like this.
from workflow.
@sonullx
One more question: why the content of libworkflow.so is text: GROUP ( libworkflow.a AS_NEEDED ( libpthread.so libssl.so libcrypto.so ) ) ? I don't this kind of usage before. Where can I find the reference?
from workflow.
It is a linker script.
See this.
from workflow.
Related Issues (20)
- WFNetworkTask http 服务怎样获取 post 请求的数据 HOT 2
- 咨询头文件报错问题 HOT 2
- handler_threads配置的问题 HOT 6
- c++使用wfkafka 调用create_kafka_task崩溃 HOT 38
- 如何优雅的取消DAG中的后续图节点 HOT 4
- myssql cli 使用是否可以创建多个任务 HOT 34
- AcceptEx and GetAcceptExSockaddrs gives error on Windows HOT 2
- Windows与其他平台是单独release吗? 我看11.4没有windows的tag, vcpkg也只有10.9 HOT 2
- 能否给xmake中的workflow加上windows的支持 HOT 6
- redis zadd命令使用,set_request第二个参数是vector<stirng>, 没法添加int类型 score HOT 36
- Turkish Character Support on get_parsed_body HOT 5
- Get All Headers of HTTP Request HOT 5
- http请求获取对方应答的数据接口是哪一个 HOT 1
- 能支持mqtt或zmq吗 HOT 1
- http server服务,使用WFGoTask处理请求结束后线程数没有降低 HOT 7
- 机器的连接达到了上限,如何关闭TIME_WAIT连接。 HOT 2
- 请教一个kafka 11错误码的问题 HOT 6
- workflow 如何支持 fast-dds? HOT 1
- http请求不响应问题 HOT 1
- 关于redis sub/pub问题 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workflow.