Find the answer to your Linux question:
Results 1 to 5 of 5
Can I Link Windows ".DLL" library file with my linux application using GCC at the time of compiling linux application. If not then how can I use ".DLL" at linux ...
  1. #1
    Just Joined!
    Join Date
    Feb 2008
    Posts
    50

    How link Windows .DLL using GCC

    Can I Link Windows ".DLL" library file with my linux application using GCC at the time of compiling linux application.

    If not then how can I use ".DLL" at linux application.

    Please help!

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    dll is a windows library that was compiled to run on windows operating system

    you can't link to it or use it in any way on linux

    You should recompile source to a linux library.

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,961
    As coopstah13 said in effect, you can't use a Windows DLL in a Linux application. If you need the functions of the DLL in your Linux application and have access to the source code, you can build it for Linux, assuming there aren't too many Windows-specific system calls. If you don't have the source, then you are probably out of luck and will have to reverse-engineer the functions in the DLL.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. #4
    Just Joined!
    Join Date
    Feb 2008
    Posts
    50
    Thanks coopstah13 and Rubberman for your replies.
    I don't have the DLL source.. So now I need to do reverse engineering. I know the DLL's functionality so i can go for it..!!

    Thanks for your help..!!

  5. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,961
    As someone once said, been there, done that... Good luck in your endeavors.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...