ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
Wine not an emulator for windows. Its a API call interpreter or something like that. Could use bochs to install win98 or something and then get a compiler such as bloodshed c++ or something like that and compile. Bloodshead is a free gnu software. uses gcc and will create windows binaries.
Wine not an emulator for windows. Its a API call interpreter or something like that. Could use bochs to install win98 or something and then get a compiler such as bloodshed c++ or something like that and compile. Bloodshead is a free gnu software. uses gcc and will create windows binaries.
That sounds like too much hard work, I'm sure if you host the files somewhere someone from here will compile it for you.
I just checked the Wine application database and it looks as if you can use Dev-C++ (5.0.1) from within it. Although there are some issues of compiling from within the GUI.
Even though one can run gcc as a cross-compiler there's the issue
of having to (most likely statically) compile all libraries involved,
plus one would have to know how Windows would interface with the
OpenGL-stuff that comes from Linux. I'd suggest to install cygwin
on a windows box and try it there ;}
I guess it wouldent be worth it if you were only gonna do this once no.
Thats great. Bochs seems too much work though. If I'm going to do this might as well make it easy to make costume levels, so everyone can enjoy and I'll release as opensource.
Well I'll probably post in a week or two the game here, after I make it nicer(to look at code, add comments etc) and "how to play" into the game. It already runs well on Linux however there are like no levels except that strange one I made to test the game. By the way this would be my first contribution to Linux community (in the form of code) . Right now levels are made using a hex editor, I'm going to change that .
Usually, when you're compiling for Windows, you use one of the Windows-native compilers. It is my recollection that gcc does not produce Windows executables, but of course, it's not the only compiler out there.
Both Microsoft and Borland produce very good Windows compilers.
Source code that is prepared to be compiled by several different compilers, each appropriate to its own architecture, is quite common indeed.
From the title, it almost sounded like you were going to compile a crazy modified version of the linux kernel that'll load windows drivers and replace ntsokrnl.exe
But if for easy cross compilation, just design your code to be robust. Use as little OS independent functions in the core of your program. Use relative paths. etc.
Then add the optimizations for the OS later on.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.