Click to See Complete Forum and Search --> : Compiling programs for windows
Mazarin
10-07-2000, 06:16 PM
I'd like to know if there is a way to compile a program using GCC that will work under windows.
I am quite new to linux so if the question is a little off the wall i'm sorry.
manual_overide
10-07-2000, 06:50 PM
Well, gcc creates an executable binary for whatever system is running gcc. So unless you can get gcc on windows....
The source code could compile in windows, though. Use Borland or Visual Studio in windows, and you'll get a windows binary (.exe file)
klamath
10-07-2000, 11:44 PM
No, gcc will create a binary which runs on the same system that compiled it. Binary-incompatible systems (e.g. Solaris/IRIX, Linux w/ libc5 and libc6, etc) can't share binaries.
------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
manual_overide
10-07-2000, 11:56 PM
Right. That's what I meant.
Strike
10-08-2000, 03:06 AM
Actually, there are cross-compilers out there. Whether or not there is a Linux-to-Windows executable one, I don't know. You can use the gcc port DJGPP ( http://www.delorie.com ) to compile stuff in Windows if you want.