Author Topic: Difference between gcc and Mingw32-gcc  (Read 6522 times)

Offline mahaju

  • Multiple posting newcomer
  • *
  • Posts: 25
Difference between gcc and Mingw32-gcc
« on: March 07, 2012, 02:36:39 am »
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
Quote
What'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


Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5234
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Difference between gcc and Mingw32-gcc
« Reply #1 on: March 07, 2012, 06:28:28 am »
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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9595
Re: Difference between gcc and Mingw32-gcc
« Reply #2 on: March 07, 2012, 06:49:56 am »
Quote
What'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:
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: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ