LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-04-2004, 01:01 AM   #1
mohan_mohan
LQ Newbie
 
Registered: Nov 2004
Location: Chennai
Posts: 6

Rep: Reputation: 0
Post Windows DLL to Linux .so


HI,

I have a windows DLL written in Borland C++. I have to migrate that one to Linux platform. We have to convert the DLL into .so file as there is no concept of DLL in Linux. I heard some tools like win2lin, but WINE will not help me in this.

If you have any idea on that please reply for this message.

Thank you
 
Old 11-04-2004, 01:46 AM   #2
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Re: Windows DLL to Linux .so

Quote:
Originally posted by mohan_mohan
I have a windows DLL written in Borland C++. I have to migrate that one to Linux platform. We have to convert the DLL into .so file as there is no concept of DLL in Linux. I heard some tools like win2lin, but WINE will not help me in this.
This may not be the kind of answer you're looking for, but since you have the source code of your DLL, can you simply write a Linux makefile and try recompiling the code into a shared object (.so)?
 
Old 11-04-2004, 04:30 AM   #3
mohan_mohan
LQ Newbie
 
Registered: Nov 2004
Location: Chennai
Posts: 6

Original Poster
Rep: Reputation: 0
Re: Re: Windows DLL to Linux .so

Quote:
Originally posted by daihard
This may not be the kind of answer you're looking for, but since you have the source code of your DLL, can you simply write a Linux makefile and try recompiling the code into a shared object (.so)?
Thank you. Thank you oncemore for replying very fast.
Here I also have a VB DLL. So I want to convert this VB DLL to Linux .so. Sorry for making you more burden.. Just I need the suggestion whatever it may be.
 
Old 11-04-2004, 10:43 AM   #4
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Re: Re: Re: Windows DLL to Linux .so

Quote:
Originally posted by mohan_mohan
Here I also have a VB DLL. So I want to convert this VB DLL to Linux .so. Sorry for making you more burden.. Just I need the suggestion whatever it may be.
Hmmm... We do a lot of porting between different platforms, but we have source code in C/C++ so it's just a matter of using standard ANSI C/C++ and appropriate makefiles. I'm not sure if there's an easy way to port code in the binary format, though. The fact that both Windows and (typical) Linux use the Intel 32-bit CPU may help, but I could be wrong.

Sorry I can't be of much help...
 
  


Reply



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
Converting Windows DLL code to Linux shared library DavidW567 Programming 7 07-27-2010 08:15 AM
windows DLL edselrt Linux - Newbie 2 11-07-2005 08:02 PM
Linux keeps saving my behind with windows problems (HAL.DLL) randon SUSE / openSUSE 1 10-29-2005 09:30 PM
How to create .dll in linux like in windows to support client access? samples needed heather27j Linux - Software 1 11-16-2004 04:06 PM
Can I access a Windows DLL directly from Linux code? Silverjam Linux - Software 3 07-10-2004 09:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:53 PM.

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