Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-13-2008, 06:18 AM   #1
LQ Newbie
Registered: Apr 2008
Posts: 28

Rep: Reputation: 15
How to link to dll files in Linux ?

Hello all,

I have a file.h with some __declspec(dllexport) and __declspec(dllimport) statements. This __declspec are specific to windows API, BUT i must load this file in Linux with gcc. The idea is that I must somehow load some dll files.

With Windows and Visual C++ it would have been easy, but I must do this in Linux with Eclipse and gcc. So any advices concerning this would be very very appreciated.


Old 05-13-2008, 07:03 AM   #2
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
What you want to do isn't clear for me. But for sure you can't use a Windows DLL with a linux program, since binary formats are different. Maybe you can use a windows dll under linux through "wine" (it's a windows emulator for binaries), but I don't know how to "wrap" this into your executable.
Old 05-13-2008, 08:29 AM   #3
LQ Newbie
Registered: Apr 2008
Posts: 28

Original Poster
Rep: Reputation: 15
Thank you jf.argentino.

I will try to install wine and see afterwards what is to do next.

The aim of my application is to get access to an application (which is a software kit for an eye tracking device) and communicate with that (with SDK dll's). The conclusion is that I must build my own application on Linux which will have the same behaviour. For this I must get access to the dlls of that application.

Best regards,
Old 05-13-2008, 12:44 PM   #4
LQ Newbie
Registered: Apr 2008
Posts: 28

Original Poster
Rep: Reputation: 15
I managed to run an .exe file on Linux with wine.

But what I need more exactly is to integrate some dll files into my linux application.

I need to convert .dll to .so files.

Does anybody knows if this is possible ?

I am thinking that if wine can get an .exe file to run on Linux maybe it can also convert .dll to .so

I really hope someone has the answer I expect


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hot to set Eclipse to link to dll files ? barbuceanu Linux - Software 0 05-12-2008 06:49 PM
use windows dll files with WINE phneoix Linux - Software 4 02-18-2006 04:01 PM
is there a way to use windows dll files in c++? bevenl Programming 2 09-30-2004 10:37 PM
How does VC link a dll created by cygwin? chuanyung Programming 1 02-25-2004 01:06 PM
Link DLL with C code on Win32 (CygWin) jpbarto Programming 4 10-23-2003 03:30 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration