MSFN Forum: Free Windows 32bit compilers? - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Free Windows 32bit compilers? Rate Topic: -----

#1 User is offline   JedClampett 

  • Junior
  • Pip
  • Group: Members
  • Posts: 66
  • Joined: 29-August 11
  • OS:XP Home
  • Country: Country Flag

Posted 20 October 2011 - 03:07 PM

Hi all. If I wanted to port some GPL'd Linux applications to Windows 32 bit, are there any free compilers to do this with please? Thinking of things like C & C++ IDE's, Pascal.

TIA,

Jed :)

This post has been edited by JedClampett: 20 October 2011 - 03:08 PM



#2 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,260
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 20 October 2011 - 04:08 PM

View PostJedClampett, on 20 October 2011 - 03:07 PM, said:

If I wanted to port some GPL'd Linux applications to Windows

I think you'll soon discover it's not always too simple. From the different subsystems used, completely different libraries available, things that aren't covered by the language being quite different (e.g. for C++ code, posix threads being different than Windows', requiring the Pthreads-w32 lib), many things which work rather differently (no fork), compiler incompatibilities (even across different compilers on the same OS!), etc. For simple command line tools it might be pretty simple and quick but for fancy GUI apps it might be quite the undertaking. Not that I really know of any useful apps that run on Linux but not on Windows or that don't have equivalents...

As far as C and C++ compilers, the best 2 are commercial (Microsoft's and Intel's), and others like C++ builder are also commercial. You're mostly left with minority and open-source compilers like DJGPP.

Edit: others point cygwin and mingw but when you're essentially installing linux and gcc under windows, but that's where I stop to call it porting. You might as well just run Linux in a virtual machine...

#3 User is offline   endlessness 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 18-May 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 20 October 2011 - 07:09 PM

You might want to try Cygwin. Many Linux/UNIX applications will readily build on it, though they will not behave like native Windows applications (you will need X11, for example).

#4 User is offline   allen2 

  • Not really Newbie
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,439
  • Joined: 13-January 06

Posted 20 October 2011 - 10:47 PM

Cygwin is the classical way and will give you almost a complete linux distrib compiled to run under windows but you might prefer mingw (it is my preferred choice) or djgpp but this last one is more Dos oriented.

#5 User is offline   JedClampett 

  • Junior
  • Pip
  • Group: Members
  • Posts: 66
  • Joined: 29-August 11
  • OS:XP Home
  • Country: Country Flag

Posted 21 October 2011 - 09:26 AM

Thanks for the replies. So I might just put these ideas to one side for now. Obviously I want it to remain a native Windows environment, so any Apps I make will run on other users native Windows paltforms.

Jed :)

#6 User is offline   allen2 

  • Not really Newbie
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,439
  • Joined: 13-January 06

Posted 22 October 2011 - 02:37 AM

Just for the record, Mingw allow you to compile binaries without any need of libraries dependencies and most of the time your compiled binaries will work on any win32 OS without the need of any specific dll.

This post has been edited by allen2: 22 October 2011 - 02:38 AM


#7 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 9,108
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 22 October 2011 - 02:56 AM

Only seemingly OT :ph34r: and just for the fun of it ;):
http://reboot.pro/15207/

Generally speaking mingw compiled apps are far "better" (in the sense of more compact, more easibly deployable) than Cygwin ones, though.

The main thing IMHO is, if you are going to distribute the Source code, that you also detail WHICH exact compiler you used and the exact way the thingy has to be compiled.

Whenever possible try NOT to use a zillion of stupid do-it-all .dll's.

jaclaz

#8 User is offline   JedClampett 

  • Junior
  • Pip
  • Group: Members
  • Posts: 66
  • Joined: 29-August 11
  • OS:XP Home
  • Country: Country Flag

Posted 22 October 2011 - 12:13 PM

View Postjaclaz, on 22 October 2011 - 02:56 AM, said:

Generally speaking mingw compiled apps are far "better" (in the sense of more compact, more easibly deployable) than Cygwin ones, though.


Thanks jaclaz. I'll take a look at mingw ASAP.

Jed :)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy