Thread: Linking to a DLL (on MingW)

  1. #1
    Registered User
    Join Date
    Dec 2011

    Linking to a DLL (on MingW)


    How does one go about linking to a DLL (using MingW)

    I tried google-ing this, can't make head or tails of the results.

    (I'm actually trying to link to one of the Pthreads-win32 dlls)

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Well, you link with the static library for Pthreads, which is more or less an intermediate for the corresponding DLL. If you're talking about DLL injection though, you'll have to ask in a Windows forum.
    Devoted my life to programming...

  3. #3
    Registered User
    Join Date
    Dec 2011
    My query is more on using the Pthreads DLL (but not specific to this). Do I need any special flags when linking/using my code with a dynamic library. (perhaps linking is not the correct word here)

    Linking to a static library is simple enough, but how do i go about using a dynamic library.

    It's not really DLL injection - which is more of an info-sec attack

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linking to shared libs (MinGW)
    By Epy in forum C Programming
    Replies: 12
    Last Post: 08-24-2012, 10:55 AM
  2. MinGW linking issue
    By ascen in forum Windows Programming
    Replies: 1
    Last Post: 03-31-2010, 04:26 AM
  3. Linking to MinGW lib from vs2005
    By Kennedy in forum Tech Board
    Replies: 4
    Last Post: 09-23-2009, 09:59 AM
  4. Linking DX9 lib? -,- (Mingw)
    By Blackroot in forum Tech Board
    Replies: 7
    Last Post: 09-17-2006, 06:26 AM
  5. MinGW Linking GUI Program
    By Tonto in forum Tech Board
    Replies: 19
    Last Post: 08-23-2006, 03:28 PM

Tags for this Thread