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

K

ks.dipu

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
 
I

Ian Collins

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.
 
A

Andre Kostur

(e-mail address removed) wrote in @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/
 
G

Gianni Mariani

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.
 
M

modemer

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
 

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

Forum statistics

Threads
474,294
Messages
2,571,511
Members
48,218
Latest member
NatishaFin

Latest Threads

Top