GithubHelp home page GithubHelp logo

Comments (8)

TimothyGu avatar TimothyGu commented on July 20, 2024

Yes it is. psapi is a standard Windows library so you shouldn't need to know about this unless you are using static library. I will update it soon.

from dlfcn-win32.

robertwgh avatar robertwgh commented on July 20, 2024

The easiest way might be adding the following line to dlfcn.c :

#pragma comment(lib,"psapi.lib")

Then, you don't need to care about the library, no matter it is statically or dynamically linked.

from dlfcn-win32.

TimothyGu avatar TimothyGu commented on July 20, 2024

@robertwgh true. Does that work with MinGW though?

from dlfcn-win32.

robertwgh avatar robertwgh commented on July 20, 2024

Not sure about that.
I mean for VS users, that works better. Since the user does not need to
touch any thing regarding to the library itself.
I don't work with MinGW.
I basically have a project compiled under VS2010/2012 and Android ndk.

On Tue, Apr 7, 2015 at 9:48 AM, Timothy Gu [email protected] wrote:

@robertwgh https://github.com/robertwgh true. Does that work with MinGW
though?


Reply to this email directly or view it on GitHub
#18 (comment)
.

from dlfcn-win32.

TimothyGu avatar TimothyGu commented on July 20, 2024

OK I'll take a look.

from dlfcn-win32.

yselkowitz avatar yselkowitz commented on July 20, 2024

No, #pragma comment(lib,...) is a MSVCism not supported by GCC (and hence MinGW).

from dlfcn-win32.

traversaro avatar traversaro commented on July 20, 2024

As correctly mentioned by @yselkowitz , the #pragma comment(lib,...) is a MSVCiscm that additionally does not play well with most build systems. I think it make sense to close this, @TimothyGu please reopen if you think otherwise.

from dlfcn-win32.

pali avatar pali commented on July 20, 2024

In this pull request #51 is removal of link time dependency on psapi.dll and change to runtime dependency. So it is not needed to link psapi.dll anymore. Function from that library is loaded at runtime, but to avoid circle dlopen/dlsym calls are not used :-)

from dlfcn-win32.

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.