Giter Site home page Giter Site logo

Build failed on Mac OS X about baidupcs HOT 2 CLOSED

gangzhuo avatar gangzhuo commented on June 16, 2024
Build failed on Mac OS X

from baidupcs.

Comments (2)

GangZhuo avatar GangZhuo commented on June 16, 2024

I think it's because I using inline incorrect. I changed the 'inline' to 'static inline'. I have no Mac OS, so i can't test.
Ref:
https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/Inline.html#Inline
http://stackoverflow.com/questions/12844729/linking-error-for-inline-functions
http://xushouze2006.blog.163.com/blog/static/16230032200831710196672/

from baidupcs.

imzjy avatar imzjy commented on June 16, 2024

Thanks, I think you get to the point. Now these inline functions are exported to symbol table, I have confirmed this by issue command:

nm bin/pcs_men.o

It changes U to T, so I get to know functions like append_mem_ent been exported now.

argp is not default installed on Mac, so in makefile, we also pass the option -largp to gcc, I have fixed this, and throw a pull request.

from baidupcs.

Related Issues (20)

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.