Code Monkey home page Code Monkey logo

Comments (4)

renzhengeek avatar renzhengeek commented on July 17, 2024

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.

helight avatar helight commented on July 17, 2024

TSocket::open() getaddrinfo() <Host: localhost Port: 9090>Name or service not known

这种问题,我们直接使用ip地址,不要使用域名,就可以了

from openflow.

helight avatar helight commented on July 17, 2024

静态编译是为了发布不依赖执行机器本地库,不会因为编译机器和发布执行机的库不一致而出现问题

from openflow.

renzhengeek avatar renzhengeek commented on July 17, 2024

好的, 我试试~

from openflow.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.