By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,640 Members | 1,600 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,640 IT Pros & Developers. It's quick & easy.

How to Port C++ dll in Linux to Windows?

P: n/a
I have a dll written in C++ running in a Linux machine. Now i want to
move that dll to
a Windows system and use it with a Windows application.
How can i do that?

Can you please tell what all are the performance issues i face?

What all are the dependencies?

Thanks in advance

May 8 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
ks*****@gmail.com wrote:
I have a dll written in C++ running in a Linux machine. Now i want to
move that dll to
a Windows system and use it with a Windows application.
How can i do that?
While off topic here, it's difficult to know where to redirect you.

Read up on shared libraries (*nix systems don't have DLLs) and check
with your windows compiler documentation on how to specify and build a
DLL. Any follow up questions should go to a windows programming group.

--
Ian Collins.
May 8 '07 #2

P: n/a
ks*****@gmail.com wrote in news:1178660116.029388.99590
@e51g2000hsg.googlegroups.com:
I have a dll written in C++ running in a Linux machine. Now i want to
move that dll to
a Windows system and use it with a Windows application.
How can i do that?

Can you please tell what all are the performance issues i face?

What all are the dependencies?
You're asking about platform-specific issues (about two different
platforms). This is off-topic in comp.lang.c++.

See the FAQ: http://www.parashift.com/c++-faq-lite/
May 8 '07 #3

P: n/a
ks*****@gmail.com wrote:
I have a dll written in C++ running in a Linux machine. Now i want to
move that dll to
a Windows system and use it with a Windows application.
How can i do that?

Can you please tell what all are the performance issues i face?

What all are the dependencies?
Yes - OT ...

Have a look at Austria C++ (latest alpha
here:http://netcabletv.org/public_releases/ warning - download big) and
see how I did it. Note the header file at_exports.h and the macros
AUSTRIA_EXPORT.
May 9 '07 #4

P: n/a
The things you have to consider about are:
1. compiler parameters.
2. datatypes
3. memory segment alignment.
4. STL
5. dependent libraries.
6. maybe more.

No matter how many issues you will be facing, it's absolutely possible
to port c/c++ code from linux to windows.

cheers

May 9 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.