Omnimaga

General Discussion => Technology and Development => Computer Programming => Topic started by: Sorunome on February 13, 2013, 10:33:57 pm

Title: C++ crosscompiling
Post by: Sorunome on February 13, 2013, 10:33:57 pm
Hey, i wondered how i could cross-compile with gcc from linux for a windows machine, and how reliable is cross-compiling?
Title: Re: C++ crosscompiling
Post by: AngelFish on February 13, 2013, 10:42:29 pm
Mingw-gcc exists as a linux package precisely to allow you to compile stuff for windows. As for reliability, it should be as reliable as any other sort of compilation.
Title: Re: C++ crosscompiling
Post by: ruler501 on February 13, 2013, 10:44:20 pm
What OS do you use? I use a gentoo offshoot which has a tool to set up the right environment.
You just have to compile it to build for windows and isolate it from the usual gcc(usually by location and name)
Title: Re: C++ crosscompiling
Post by: Sorunome on February 13, 2013, 11:11:07 pm
I use archlinux 64 bit
Title: Re: C++ crosscompiling
Post by: ruler501 on February 13, 2013, 11:16:25 pm
Then the only way I know is to manually compile it. Qwerty probably can help you more.
Title: Re: C++ crosscompiling
Post by: Sorunome on February 13, 2013, 11:17:02 pm
i'm trying mingw right now, archlinux says it is installed but idk how to use it as it isn't in /usr/bin
Title: Re: C++ crosscompiling
Post by: pimathbrainiac on February 14, 2013, 09:19:46 am
MinGW gets stored in a directory that you set... at least that's how it works on windows :P

You want cross-compiling? USE JAVA!!!

/me runs
Title: Re: C++ crosscompiling
Post by: Sorunome on February 14, 2013, 07:08:27 pm
It is for a competition int 2 weeks and i don't wanne learn a new language in such a short time, sorry :P (and they don't allow php D:)