?
Solved

unix to Dos Cross compiler

Posted on 2003-03-14
4
Medium Priority
?
186 Views
Last Modified: 2010-04-20
I have a C program which runs only on LINUX PLATFORM now I like to use it in windows machines that program as some networking system call such as socket, bind. If any knows about linux to cross compiler pls send me haiprakash007@rediffmail.com
thank you
0
Comment
Question by:haiprakash
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 8

Accepted Solution

by:
heskyttberg earned 220 total points
ID: 8137705
Hi!

You can use same compiler as you probably use in Linux, gcc.

You will have to rewrite some stuff if you are using network sockets though. Since DOS dosen't handle network and sockets at all, you need to use ODI and stuff. But more general C programs made in Linux can be recompiled with gcc in DOS.

Regards
/Hans - Erik Skyttberg
0
 

Expert Comment

by:aLk0
ID: 8138967
There was an interesting project DJGPP, but there was a Pascal compiler, and it was lost in time. If your program don't use Linux system specific you can recompile with minimum changes using any c-compiler(in theory). Because such type of program is not realistic you can try to use cygwin lybrary that emulates Linux or other Unix environment in Windows.
0
 

Expert Comment

by:CleanupPing
ID: 9087707
haiprakash:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 2

Expert Comment

by:TheWeakestLink
ID: 9288535
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept comments from heskyttberg as answer
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheWeakestLink
EE Cleanup Volunteer
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question