[mingw - C/C++] RE: Is it MinGW's error?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[mingw - C/C++] RE: Is it MinGW's error?

SourceForge.net

Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3208044
By: dessent

So then you are talking about cross compiling.  You will need to install Cygwin,
and then build a cross-toolchain.  This means building binutils and gcc with
--host=i686-pc-cygwin --target=i686-linux-gnu.  This is not a simple procedure,
and you should google for "crossgcc" for help.  You would then download the
linux kernel sources and configure and build as you would under linux.

However, it's still not clear exactly what you want.  The linux kernel you build
this way will be just like any kernel you download from a regular linux distribution,
in that it will not "run under windows".  You would have to install it  along
with many other utilities onto a seperate partition and boot it just like any
other linux distribution.

If your goal is actually to compile unix-like programs to run under windows,
then you don't want to build a linux kernel.  You want to install Cygwin and
compile the sources directly.  Cygwin provides much of the posix/unix API so
that most unix type programs will compile cleanly, but sometimes you will still
have to make modifications.

Mingw can also be used for this, but it is not the same thing.  Mingw provides
you with a compiler/toolchain that can be used to compile windows binaries using
the stock win32 API and C runtime library, but it does not attempt to emulate
any posix-like functions that don't exist in windows.  So, if your program uses
anything that is not in the windows API you will have to either re-write it
to use the windows equivalent, or use Cygwin.

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=286529


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users