Use Windows Dll from Linux Application

  • Thread starter Sebastien Degardin
  • Start date
S

Sebastien Degardin

He everyone,

Does anybody know if it's possible to load and use a library compiled
on windows from a Linux application ?

We have a couple of a Dll files to use in our C++ linux application.

Regards,

Sebastien Degardin
(e-mail address removed)-NO-SPAM
 
N

Noah Roberts

Sebastien said:
He everyone,

Does anybody know if it's possible to load and use a library compiled
on windows from a Linux application ?

We have a couple of a Dll files to use in our C++ linux application.

Ask in a linux group and possibly more precisely a wine group.
 
L

Larry I Smith

Sebastien said:
He everyone,

Does anybody know if it's possible to load and use a library compiled
on windows from a Linux application ?

We have a couple of a Dll files to use in our C++ linux application.

Regards,

Sebastien Degardin
(e-mail address removed)-NO-SPAM

Try asking in the newsgroup:

comp.os.linux.development.system

Having said that, we do it all of the time...
On Windows we compile our source into a DLL, and
on unix/linux we compile our source into a '.so'.
Of course we're careful that our source doesn't
contain any platform-specific code (unless it's
inside '#ifdef' blocks).

Larry
 
S

Sebastien Degardin

Thank's for all.

Of course i can compile my source file to .so libraries to Linux.
But, for that, i need the source file :).

Regards,...
 
D

Daud Lee Lambert

Sebastien Degardin said:
Thank's for all.

Of course i can compile my source file to .so libraries to Linux.
But, for that, i need the source file :).

If you build and install Wine, among other things you will get a program
named "winegcc". If you build your program with that compiler, it will be
able to dynamically link to Windows PE DLL files. For more details, see
http://www.winehq.org .
 
L

Larry I Smith

Sebastien said:
Thank's for all.

Of course i can compile my source file to .so libraries to Linux.
But, for that, i need the source file :).

Regards,...

Well, if they are '3rd-party' DLL's, you're probably
out of luck. Who knows what other DLL's those might
depend on - it's like dominoes, one thing leads to another.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top