473,770 Members | 4,718 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

can i run linux code on windows

is there any method where i can run my linux code that is all the a.out
i made on linux to run on windows.
plz tell me the way.

Nov 15 '05
21 3558
Keith Thompson wrote
(in article <ln************ @nuthaus.mib.or g>):
Ian Gay <ga*@sfuu.ca> writes:
"John Bode" <jo*******@my-deja.com> wrote in
news:11******** *************@g 49g2000cwa.goog legroups.com:

sachin dooble wrote:
is there any method where i can run my linux code that is all the
a.out i made on linux to run on windows.
plz tell me the way.

You'll need something like VMWare. AFAIK, there's no way to make a
Linux executable run under Windows natively.

But since this is comp.lang.c, I assume you have source code in c. So
get a windows compiler and re-compile it. mingw is a nice free windows
version of gcc.


But unless the source code is extremely portable, it probably won't
compile under both Windows and Linux.


Strange, almost everything I have that's written in C will. C++
code is a different story, particularly if it's GUI code.

--
Randy Howard (2reply remove FOOBAR)

Nov 15 '05 #11
sachin dooble wrote:
is there any method where i can run my linux code that is all the a.out
i made on linux to run on windows.
plz tell me the way.


You could try colinux (at colinux.com). It runs Linux as a task under
Windows. Not exactly what you were asking, but it does let you run
your Linux code under Windows (under Linux), which is kinda/sorta the
same thing, maybe/almost?

Nov 15 '05 #12
"ed_davis2" <ed*******@yaho o.com> writes:
sachin dooble wrote:
is there any method where i can run my linux code that is all the a.out
i made on linux to run on windows.
plz tell me the way.


You could try colinux (at colinux.com). It runs Linux as a task under
Windows. Not exactly what you were asking, but it does let you run
your Linux code under Windows (under Linux), which is kinda/sorta the
same thing, maybe/almost?


First, this is off-topic,

Second, you should try colinux.org unless you're interested in Lau Gar
Kung Fu.

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 15 '05 #13
Keith Thompson wrote:
"ed_davis2" <ed*******@yaho o.com> writes:
sachin dooble wrote:
is there any method where i can run my linux code that is all the a.out
i made on linux to run on windows.
plz tell me the way.


You could try colinux (at colinux.com). It runs Linux as a task under
Windows. Not exactly what you were asking, but it does let you run
your Linux code under Windows (under Linux), which is kinda/sorta the
same thing, maybe/almost?


First, this is off-topic,

Second, you should try colinux.org unless you're interested in Lau Gar
Kung Fu.


Whoops! Yes, I've accidentally been there a couple or three times
myself... Thanks for the correction, even if it is off-topic :-)

Nov 15 '05 #14
In article <11************ **********@g44g 2000cwa.googleg roups.com>,
sachin dooble <sa***********@ gmail.com> writes
is there any method where i can run my linux code that is all the a.out
i made on linux to run on windows.
plz tell me the way.


The answer is "maybe" A lot of it should be portable between Linux and
Windows. However it depends on the library calls you make. Also it wil
depend on weather it is command line to talking to a GUI.
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys. org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Nov 15 '05 #15
Das
John Bode wrote:
sachin dooble wrote:
is there any method where i can run my linux code that is all the a.out
i made on linux to run on windows.
plz tell me the way.


You'll need something like VMWare. AFAIK, there's no way to make a
Linux executable run under Windows natively.

Why You guys say no way??? if Wine can run Windoze code under linux A
similar system can be developed to run Linux Codes under Windows.
Well it might be Extreamly difficult but I think it is Possible.
Alex You Write OS So you can guide him if he is interested to go the
hardest way. Who knows He might be the next Linus ;)

Nov 15 '05 #16
In article <11************ **********@g47g 2000cwa.googleg roups.com>,
Das <as*********@gm ail.com> wrote:
John Bode wrote:
You'll need something like VMWare. AFAIK, there's no way to make a
Linux executable run under Windows natively.

Why You guys say no way??? if Wine can run Windoze code under linux A
similar system can be developed to run Linux Codes under Windows.


Wine requires that the code be recompiled with the Wine libraries.
Most people would not count that as having the "executable " run "natively".
--
Entropy is the logarithm of probability -- Boltzmann
Nov 15 '05 #17
Walter Roberson wrote:
In article <11************ **********@g47g 2000cwa.googleg roups.com>,
Das <as*********@gm ail.com> wrote:
John Bode wrote:

You'll need something like VMWare. AFAIK, there's no way to make a
Linux executable run under Windows natively.

Why You guys say no way??? if Wine can run Windoze code under linux A
similar system can be developed to run Linux Codes under Windows.


Wine requires that the code be recompiled with the Wine libraries.
Most people would not count that as having the "executable " run "natively".


<OT>
No it does not. Or at least, not always. I know this having run SW I
only had Windows binaries for such as Agent from Forte Inc.
</OT>

Another example of why off topic stuff should not be discussed just
redirected.
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
Nov 15 '05 #18
"Das" <as*********@gm ail.com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. .
....
Why You guys say no way??? if Wine can run Windoze code under linux A
similar system can be developed to run Linux Codes under Windows.
Well it might be Extreamly difficult but I think it is Possible.
Alex You Write OS So you can guide him if he is interested to go the
hardest way. Who knows He might be the next Linus ;)


The thing is, apart running x86 code on x86 CPU (be this code linux
executable or linux -- doesn't matter) one needs to provide this code with
the expected environment which this code needs. Hence, although it's all
possible to run 90% of code natively (to the degree x86 CPU allows that
since it wasn't designed with the emulation in mind), the rest has to be
mimicked anyway. And it's a good question whether linux/windows emulation is
easier then emulation of the entire x86 PC. :) Possible != available (not
now, at least :).

Alex
Nov 15 '05 #19
Das

Alexei A. Frounze wrote:
"Das" <as*********@gm ail.com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. .
...
Why You guys say no way??? if Wine can run Windoze code under linux A
similar system can be developed to run Linux Codes under Windows.
Well it might be Extreamly difficult but I think it is Possible.
Alex You Write OS So you can guide him if he is interested to go the
hardest way. Who knows He might be the next Linus ;)
The thing is, apart running x86 code on x86 CPU (be this code linux
executable or linux -- doesn't matter) one needs to provide this code with
the expected environment which this code needs. Hence, although it's all
possible to run 90% of code natively (to the degree x86 CPU allows that
since it wasn't designed with the emulation in mind), the rest has to be
mimicked anyway. And it's a good question whether linux/windows emulation is
easier then emulation of the entire x86 PC. :) Possible != available (not
now, at least :).


yes you are right... People like you Should guide Newcomers. Thanks
Alex.

Alex


Nov 15 '05 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
8229
by: Mike Dee | last post by:
A very very basic UTF-8 question that's driving me nuts: If I have this in the beginning of my Python script in Linux: #!/usr/bin/env python # -*- coding: UTF-8 -*- should I - or should I not - be able to use non-ASCII characters in strings and in Tk GUI button labels and GUI window titles and in raw_input data without Python returning wrong case in manipulated
383
12249
by: John Bailo | last post by:
The war of the OSes was won a long time ago. Unix has always been, and will continue to be, the Server OS in the form of Linux. Microsoft struggled mightily to win that battle -- creating a poor man's DBMS, a broken email server and various other /application/ servers to try and crack the Internet and IS markets. In the case where they didn't spend their own money to get companies to
9
1865
by: John Eric Hanson | last post by:
My company is considering a development path in which we develop code on 32 bit Windows machines to run remotely on 64 bit Linux machines. What could go wrong?
4
2703
by: John Owens | last post by:
Hi, I'm looking for a plugin for Visual Studio .NET or another IDE etc that would allow me to develop on Windows but have the compiler and debugger and code run on Linux. e.g. Code using Windows Build ( Behind the scenes: FTP updated files over to Linux and then compile
4
2235
by: Tim Golden | last post by:
Tim Golden enlightened us with: > > Well, I'm with you. I'm sure a lot of people will chime in to point > > out just how flexible and useful and productive Linux is as a > > workstation, but every time I try to use it -- and I make an honest > > effort -- I end up back in Windows > I'm curious, what do you mean with "it" in the part "every time I try > to use it"? Fair question. I have, over the years, installed and used Gentoo,
3
1750
by: A.M | last post by:
Hi, I am planning to develop python applications on windows and run them on Linux. Are ActivePython scripts compatible with Linux? Is there any guideline that explains the compatibility issues between python in different platforms?
7
11236
by: VijaKhara | last post by:
Hi, I am given source codes written using C. The writer told me that he wrote on Linux. Now I am trying to compile and run it on Windows. There are many errors shown up. Are there any configurations or any chances in the source codes I need to get done before compiling it on Windows? Thanks
4
3050
by: peter | last post by:
I've come across a weird difference between the behaviour of the Tkinter checkbox in Windows and Linux. The issue became apparent in some code I wrote to display an image in a fixed size canvas widget. If a checkbox was set then the image should be shrunk as necessary to fit the canvas while if cleared it should appear full size with scrollbars if necessary. The code worked fine under Linux (where it was developed). But under Windows,...
7
15665
by: Lior | last post by:
Hi, I have small code, that compiles on Visual C++ into a shared library (DLL). I need to compile it under linux, but the code includes some data types I'm not familiar with, such as DWORD, HANDLE, __int64, ULONG etc. What are those words?
0
10232
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10059
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9873
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8891
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6682
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5454
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3578
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.