News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Difference between gcc and Mingw32-gcc

Started by mahaju, March 07, 2012, 02:36:39 AM

Previous topic - Next topic

mahaju

Hello
This is not exactly related to codeblocks but I'm sure people here will know about this or at least be able to point me towards where I can find more detailed information
What is the difference between gcc and mingw32-gcc
When I build programs from codeblocks I see that it uses mingw32-gcc instead of gcc, but it seems the command line options invoked by codeblocks are still same as gcc
and I have already read
QuoteWhat's the difference between gcc and mingw32-gcc?

    * The mingw32-gcc, mingw32-g++, etc. binaries exist as an aid to cross development. They are created in a typical build of gcc. They are therefore distributed as the maintainers of GCC meant them to be. The gcc.exe indicates that the binary produces binaries for a target equal to the build, while the mingw32-gcc binary produces binaries to be executed on the mingw32 target.
from http://www.mingw.org/wiki/FAQ and I don't understand what that means
Could you kindly explain it to me?
Thank you very much


ollydbg

GCC originally comes from the Linux world, and mingw-gcc is a GCC porting to Windows, and running under Windows. That's ALL I can say. :)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

MortenMacFly

Quote from: mahaju on March 07, 2012, 02:36:39 AM
QuoteWhat's the difference between gcc and mingw32-gcc?
   * The mingw32-gcc, mingw32-g++, etc. binaries exist as an aid to cross development. They are created in a typical build of gcc. They are therefore distributed as the maintainers of GCC meant them to be. The gcc.exe indicates that the binary produces binaries for a target equal to the build, while the mingw32-gcc binary produces binaries to be executed on the mingw32 target.
from http://www.mingw.org/wiki/FAQ and I don't understand what that means
Why don't you ask at http://www.mingw.org/wiki/FAQ?

This is a Code::Forum. You agreed to this when registering with the forum:
Quote from: CB_Forum_Rules on January 24, 2009, 09:14:54 PM
3. Is your problem library, framework specific? There are appropriate forums for it, not the Code::Blocks forum.
Topic locked.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]