Sign in to follow this  

crosscompile linux to windows

This topic is 4533 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, i would like to crosscompile c++/opengl project on a linux system to an executable windows programm. the only thing i found until now is mingw.... on the webside is a litlte example how to use, but my project contains some more classes than one and i don't know how to compile that....thnx for any help

Share this post


Link to post
Share on other sites
You'd do the same thing to build a cross-compiled program with multiple source files, than you would with a native compile with multiple sources.

However, I generally don't see the point of cross-compiling Linux-Windows (or vice versa), because you need to be running both anyway to test, so why not compile?

I suppose your build system could be Linux-specific (mine usually is, but only to build platform-independent data). But that would be awkward for other developers wanting to do native Windows builds.

Mark

Share this post


Link to post
Share on other sites
Quote:
Original post by markr
You'd do the same thing to build a cross-compiled program with multiple source files, than you would with a native compile with multiple sources.

However, I generally don't see the point of cross-compiling Linux-Windows (or vice versa), because you need to be running both anyway to test, so why not compile?

I suppose your build system could be Linux-specific (mine usually is, but only to build platform-independent data). But that would be awkward for other developers wanting to do native Windows builds.

Mark

There's always testing with Wine. That, and other users.

Share this post


Link to post
Share on other sites
Sign in to follow this