Thread: Facing a .dll issue.

  1. #1
    Registered User
    Join Date
    Mar 2012

    Facing a .dll issue.

    Hi guys. Recently I created a program which use the functions from an external .dll file.
    But when I execute the .exe file after removing the .dll from the folder then it ends up with an error the DLL IS MISSING. Obviously because it uses the functions from the .dll file. But i want my program to run independently means without carrying the .dll with the .exe all the time.
    Is there any way to fix this.??

  2. #2
    Registered User
    Join Date
    Mar 2009
    Link the application against a static version of the library. The details of how to do this vary by compiler and OS, so we'll need more information to help you.

  3. #3
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    It depends:
    If you have or can get all the code that makes up the dll, then yes, you just compile the code as a static library and link to that.
    If the dll comes with both a static library and an import library, yes, again just link to the static library.
    If all you have is the dll and one or no library files, no.

    Darn: I do believe I've been ninja'd. I thought the board software told you if someone posted while you were writing? Oh well.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Facing issue with fgets in while loop
    By pingloo02 in forum C Programming
    Replies: 4
    Last Post: 04-17-2012, 06:14 AM
  2. Beginner in C facing problem
    By paushali in forum C Programming
    Replies: 3
    Last Post: 10-30-2007, 11:42 AM
  3. facing problem with Buffer
    By enggabhinandan in forum C Programming
    Replies: 5
    Last Post: 11-22-2006, 06:26 AM
  4. facing problem in understanding this....
    By enggabhinandan in forum C Programming
    Replies: 10
    Last Post: 10-25-2006, 05:30 AM
  5. Facing problem while linking
    By mehmood in forum C++ Programming
    Replies: 2
    Last Post: 02-02-2003, 05:54 AM