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.
I have recently become desperate to do some coding, but I am currently broke, so I can't afford to purchase a compiler. I tried to install Mandrake 9.2 as a secondary OS, but odd things happened during install that make no sense. I have used this distribution on other systems with no problems before. Anyways, I've given up on linux until I can piece together a system tailored for the purpose. In the mean time, I am running CygWin on my Winblows 95 machine. Within this nice little software playpen, I am running gcc 3.3.3 cigwin version. Making console programs is nifty and all, but I have run across this GREAT looking cross-platform game library called clanlib that I can't wait to mess around with. Unfortunately, I am stuck in my little cygwin playpen. What I really want to do until I get linux is make windows programs, not just cygwin programs. Now from all that I've read about gcc, it seems to be quite capable of doing what I am proposing. I just can't seem to figure out how. I want to be able to run the finished executable without needing cygwin around. Is this possible? How? Thanks in advance.
Yes and there are a couple different ways to go about it. For Win32 console applications you could use DJGPP or Mingw. With DJGPP there is an added advantage of being able to run the app in real mode DOS using the cwsdpmi.exe DPMI, if you wanted to. Both compilers are free, intended to be ran under Windows and based off GNU gcc. They also do not require any DLLs like Cygwin does. You can also set up cross compilers in a Linux environment to compile executables for Windows using them, as well as Cygwin. I believe Microsoft still offers are a free native Windows compiler for download as well, MSVC? If you mean GUI applications, then you're probably going to limited as far as a free compiler goes. I "think" QT may work in some situations, but I'm not sure. I believe DJGPP also has some graphics support.
BTW, in my opinion Slackware is well suited for setting up cross-compilers if you decide to give linux another go. I have mingw, djgpp, cygwin, and uclibc cross compilers setup under Slackware 10 using various versions of GNU gcc. Most were rather simple to setup and work rather well. To me Slackware in general just works much smoother with vanilla sources as GNU gcc, without running into all the common problems that sometimes crop up with the highly customized versions of apps routinely used in other distros. In short the whole process just seems simplier to me. And as a bonus, Slackware will force you to actually learn linux to a certain degree. But I haven't ventured much into the world of GUIs (from a programming standpoint), Linux or Windows, simply because I perfer the power of the command line, especially under Linux.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.