![]() |
converting .out file to .exe file
Hi all,
In our linux OS server i've created one small C application,after compiling i got a.out file which is a executable fiel in Linux platform.But i want that application should run in my pc so can anyone tell how to convert that .out to .exe so that i can run that application on my windows xp OS??? thanks in advance, Sri |
Well, assuming your code is cross-platform to begin with (i.e. is not dependent on Linux-specific libraries or system calls), you would need to recompile the program for Windows. AFAIK there's no way of directly converting a POSIX executable to Windows format...
|
To run on Windows, you would have to compile it for Windows---using the Windows headers, etc.
You cannot just "convert the file". |
could you plz tel in simple words??
Hi Mr.Code,
I'm a newbie to linux if you say such technical terms it makes me confuse.so in simple way whats the procedure for converting .out to .exe file??? thanks and regards, Sri Quote:
|
could u tel me the procedures for the same??
Hi,
could u tel me the procedures for the same?? thanks and regards, Sri Quote:
|
Quote:
|
Quote:
To compile for Windows, you need to set up a Windows development environment (which will include all the appropriate headers). Please give us some context for your question....for example, it this a school project? |
Cross-compiling on Linux for Windows:
http://www.google.co.uk/search?q=cro...ient=firefox-a |
Quote:
seeing as it is a ???.a file and the op wants a MS W.exe :banghead::banghead::banghead: the .a gcc output is a "hello world" from a few years back |
Cross compiling to Windows
Hi Brian,
Thanks you very much about that topic Cross Compiling.I was really not knowing about that.But i've a question for you..i hav a cygwin in my pc(windows OS) and my source code is in another m/c(linux OS).Can i directly compile that source code in cygwin without modifying even a single line?? suppose in my source code, long emp_mobNo[1000]; int extn_No[1000]; char emp_name[1000][50]; int i=0; FILE *fp; const char file[] = "/home/dbg/Sri/dataFolder/intoFile.txt"; the bold one is showing the path i'm referring for my file operation.this small application is working fine in linux if i run a.out file.But i want that application has to run on windows.So please suggest... thanks and regards, Sri Quote:
|
help mi with this
Hi,
i've a question for you..i hav cygwin in my pc(windows OS) and my source code is in another m/c(linux OS).Can i directly compile that source code in cygwin without modifying even a single line?? suppose in my source code, long emp_mobNo[1000]; int extn_No[1000]; char emp_name[1000][50]; int i=0; FILE *fp; const char file[] = "/home/dbg/Sri/dataFolder/intoFile.txt"; the bold one is showing the path i'm referring for my file operation.this small application is working fine in linux if i run a.out file.But i want that application has to run on windows.So please suggest... thanks and regards, Sri Quote:
|
Quote:
cygwin will build a LINUX file on windows ( an NOT a win.exe ) but it only builds about 75 to 80 % of programs , and only about 50% without hacking the code. MinGW will however build a Win.exe FROM linux code ( again for about 75 % of the code will build ) both can be installed ( even with MS VisualStudio ) i have these 3 installed on XP but this can be a pain in "the out know what" at times |
| All times are GMT -5. The time now is 01:25 PM. |