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. Thanks! Florin. |
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.
|
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, Florin. |
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 :) |
All times are GMT -5. The time now is 11:01 AM. |