Comments (4)
1.look at this:
g++ -o master/openflow_master -static master/main.o master/master_handler.o -L/home/renzhen/openflow/thirdparty/boost/lib -L/home/renzhen/openflow/thirdparty/thrift/lib -L/home/renzhen/openflow/thirdparty/glog/lib -L/home/renzhen/openflow/thirdparty/gflags/lib -L/home/renzhen/openflow/thirdparty/gtest/lib -Lrpc/master -Lrpc/agent -lmaster -lagent -lagent -lmaster -lmaster -lthrift -lglog -lgflags -lgtest
and
g++ -o master/client/client -static master/client/client.o -L/home/renzhen/openflow/thirdparty/boost/lib -L/home/renzhen/openflow/thirdparty/thrift/lib -L/home/renzhen/openflow/thirdparty/glog/lib -L/home/renzhen/openflow/thirdparty/gflags/lib -L/home/renzhen/openflow/thirdparty/gtest/lib -Lrpc/master -Lrpc/agent -lmaster -lagent -lagent -lmaster -lmaster -lthrift -lglog -lgflags -lgtest
2.if not including -static
, everything is okay.
from openflow.
TSocket::open() getaddrinfo() <Host: localhost Port: 9090>Name or service not known
这种问题,我们直接使用ip地址,不要使用域名,就可以了
from openflow.
静态编译是为了发布不依赖执行机器本地库,不会因为编译机器和发布执行机的库不一致而出现问题
from openflow.
好的, 我试试~
from openflow.
Related Issues (4)
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 openflow.