I use linux to program, does anyone know of a plug-in to g++ to cross compile so it can run on windows? I know I can just compile it on widows and it runs. I have searched google and i am unable to find anything good.
Thank you in advance.
I use linux to program, does anyone know of a plug-in to g++ to cross compile so it can run on windows? I know I can just compile it on widows and it runs. I have searched google and i am unable to find anything good.
Thank you in advance.
They're called cross-compilers - a compiler which runs on machine 'x' producing code which runs on machine 'y'.
It's not normally necessary to have a cross-compiler targeting windows since native compilers are common enough. It's only when the target lacks a compiler that you need a cross-compiler.
Have you tried running say dev-c++ inside WINE?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
i was looking for something more built in -- or commandline-ish to make easier for me
I've got the world on a stick - how easy do you want everything to be?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I was not intending to offend you, i was asking for command line because i do not run X in linux and thus WINE wont work for me. I generally ssh in to my programming box, and that also does not allow X.
WINE works on commandline programs too. And the compiler for Dev-C++ is MinGW a windows port of gcc. So install WINE and MinGW and then have at it.
Thank you both, I did not want to have to rebuild gcc and make it a cross compiler, but I may have to. For now wine and mingw sound good,
Once again, thank you
Can you do gcc compile across operating systems? I thought it was only across machines.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
Different operating systems can be run on the same machine.
That wouldn't be a logical restriction. Either the compiler is able to target a platform different than the one it's running on, or it isn't. What that platform is shouldn't matter.Originally Posted by Mario F.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law