Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all,
I recently downloaded crossplatform project and compiled it .A Linux binary is produced and it is working fine for Linux..
I need to convert this binary output to windows executable(.exe)
Please suggest me some way...
My project is in C embedded with Tcl....
It can't be done. I don't understand why you would want to convert binary output ot windows exe? If you have the source code that works on windows.. you could make an exe. If u r really looking for soemthing that works on many platforms, go for Java.
Cross-compiling can do it. You need a compiler in Linux that will produce output for Windows. (I assume such a beast exists). But you can't produce a Linux binary and expect it to work in Windows (or vice versa).
2. You may be able to run gcc for Windows under wine or crossover office (I have no idea whether or not it'll run under wine) and compile the code "natively" (as far as the compiler would know), and it should be scriptable to boot.
The C source code should be able to compile for Windows with minimal source code changes. If you can't find a way to compile a windows exe in Linux you can easily install gcc on a windows box and compile the project there, I belive it comes with the right TCL libraries to compile that part.
As far as converting a binary Linux executable to a windows executable, they are very different, as was stated above and that's really not a viable option.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.