You are not logged in.
Pages: 1
Hi, I have been trying to search on the internet for how to cross complie a simple "Hello World" program on a linux box so that you can exeute it later on an windows computer... If anyone knows about this please let me know!
And I looking for how to do it from the commandline....
Best Regards, Robert
Offline
Well, the win32 C runtime is wildly different. The best thing you could do is compile it against the cygwin dll, which is messy as you need to distribute that dll with your app. Take a look at how cygwin bootstraps their builds.
Offline
Hm.. okey.. sounds kind of complicated... But I'll try to look up those a little thanks..
Offline
Hi.
You should download mingw32 from community.
I have successfully cross compiling my qt application using this package and mingw32-qt from AUR.
For example of compiling a main application. Please refer to below URL.
http://www.gentoo-wiki.info/HOWTO_MinGW
I haven't try compiling the Winmain routine. But it is similar in Arch and you should use i486-mingw32-gcc to compile.
Offline
Hi and thank you very much!! It works
Offline
Pages: 1