473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Need to port a C++ Dll Windows platform on to linux platform

Hi All,
I need to port a Windows C++ Dll to linux platform. I am new to the entire concept . I would highly appriciate it if anyone can pls tell me what are the issues that i will encounter.The complete code for Dll needs to be ported.
Any other link on C++ dlls in linux environment would also be helpful.
Please help.
Thanks in advance.
Noopur
Aug 24 '07 #1
2 1827
JosAH
11,448 Expert 8TB
Hi All,
I need to port a Windows C++ Dll to linux platform. I am new to the entire concept . I would highly appriciate it if anyone can pls tell me what are the issues that i will encounter.The complete code for Dll needs to be ported.
Any other link on C++ dlls in linux environment would also be helpful.
Please help.
Thanks in advance.
Noopur
dlls are called 'shared objects' in Unix/Linux; all you do is recompile all the sources,
use the -fPIC flag (PIC == Position Independent Code) and link all the compiled
.o (o == object) files using the -dynamic flag. The linker will produce a .so file
for you which is exaclty identical to an executable file without a jump to a main()
function. Don't forget to link against *other* .so files used by your library.


kind regards,

Jos
Aug 24 '07 #2
Thanks a ton ...i will incoprrate your suggestions and see if it helps. Between , can you guide me to some good links for C++ Dll coding in linux.

Thanks for quick help
Aug 24 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

55
by: Alex | last post by:
Hello people, The following is not a troll but a serious request. I found myself in a position where I have to present a Pro/Con list to management and architects in our company with regard to...
28
by: Jed | last post by:
Hello to all! I have a couple of projects I intend starting on, and was wondering if someone here could make a suggestion for a good compiler and development environment. My goals are as...
1
by: Mathias Goldau | last post by:
Hi, Can someone tell me where I find some material (e.g. a compiler with graphics.h and conio.h (for free)) related to graphic programming BGI-like, and sound programming (not PC-speaker). The...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
4
by: fatihbilmuh | last post by:
I code a program which two computer communicate each other with serial port in cross platform but my program dont run cross platform but run linux to linux or windows to windows . I think my serial...
21
by: nihad.nasim | last post by:
Hi there, I have a database in Access that I need on the web. The web page should connect to the database and write records for certain tables and view records for others. I want to know a...
1
by: ayeung | last post by:
Hi, I'm currently trying to port some code which writes log files on a Windows CE-based embedded system to Linux. The code uses Windows specific types (file handles, thread handles etc) and I'm...
2
by: Ramon F Herrera | last post by:
Hello: My application has three fundamental aspects: (1) It is heavily GUI oriented with palettes, and visual "communication" between the app and the user by graphical means, much like an IDE...
20
by: macca | last post by:
Hi, I just started a new web developer job (my first actually) and the machine they gave me to use is a Mac. Two days in and I'm running a Win XP environment on my Mac at work (using VMWare), ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.