   Visual c++ cross platform build?
  I'm currently using visual c++ express to write a game using SDL.How do I build an executable for, say, macOSX? Thanks in advance,Chris   
  You can't with Visual Studio.  I don't know if it's possible to use the GNU g++ compiler on a Windows machine to make an OS X executable, but it may be.  I do know you can use g++ on a Mac to make an OS X executable though (which it sounds like you don't have).   ;Quote:Original post by MikeTacularYou can't with Visual Studio.  I don't know if it's possible to use the GNU g++ compiler on a Windows machine to make an OS X executable, but it may be.  I do know you can use g++ on a Mac to make an OS X executable though (which it sounds like you don't have).Yeah, visual studio is unable to create exe's for Macosx.If you have a Mac running Macosx download a copy of SDL and follow this guide to rebuild your SDL game for it:http://www.meandmark.com/sdlopenglpart2.html;  I think you can create a makefile project in VS, which you can use to set up a custom build system using gcc or whatever. This would allow you to use the IDE but target different platforms when you build (of course you wouldn't be able to run or debug though). Could be worth some googling..   ;Quote:Original post by MikeTacularYou can't with Visual Studio.  I don't know if it's possible to use the GNU g++ compiler on a Windows machine to make an OS X executable, but it may be.  I do know you can use g++ on a Mac to make an OS X executable though (which it sounds like you don't have).It is maybe interesting to note that there is also a port of MinGW to Linux, or in other words: there's a port of the port of GCC for windows for linux.   ;  It might be a good idea to use a system such as CMake to handle the makefile generation for your project - it will generate you the required files to build on many platforms, including the required files for a Visual studio project, and then all you need to do is use those makefiles on the platform they are for (e.g OSX) to build your game.Edit: As previously mentioned, I think you do need a machine running the target operating system to build for it.   ;Quote:Original post by BadgerrEdit: As previously mentioned, I think you do need a machine running the target operating system to build for it.Not at all.  This is what cross-compiler are for: they run on the development machine but produce binaries for the target architecture.  Otherwise it would be very frustrating to develop embedded applications :-PObviously, even if you can built for a completely different machine, you will need the target machine in order to execute and test the built binaries.;Quote:Original post by BadgerrEdit: As previously mentioned, I think you do need a machine running the target operating system to build for it.The example I have given was specifically about a cross-compiler (MinGW == Windows port of the standard compiler suite on GNU systems; MinGW-GCC is a kind of "backport" to GNU, so that you can compile windows applications without the need for running windows).Quote:summakyObviously, even if you can built for a completely different machine, you will need the target machine in order to execute and test the built binaries.While this is always a good idea, it is possible to test windows applications without windows:* With Wine, you can run windows applications natively on many operating systems.* A free and clean room windows implementation in the pipeline: ReactOS* There are also free DOS', like the most prominent Dosbox, DOSEMU or FreeDOS (note that DOSEMU is similar to Wine as DOS programs can be run natively with it, i.e. without virtualization)I also remember that when you pack a custom Linux kernel, there was somewhere the page where you could enable/disable support for several executable file formats (like a.out, COFF, ELF) and there was also a switch for the old DOS format.edit: ouch I quited myself instead of editing the other post :S   ;Quote:Original post by summakyNot at all.  This is what cross-compiler are for: they run on the development machine but produce binaries for the target architecture.  Otherwise it would be very frustrating to develop embedded applications :-POf course, how silly of me not to realise that :-P;  Fedora 11 now provides a cross compiler.  Turns out the teamed up with MinGW and they developed a way to compile windows executables from linux.   