Author Topic: MinGW with GCC4  (Read 13611 times)

Offline Ninds

  • Multiple posting newcomer
  • *
  • Posts: 18
MinGW with GCC4
« on: July 10, 2009, 11:28:24 pm »
Hello

I would like to know, now that MinGW  is being shipped with GCC4 https://sourceforge.net/project/shownotes.php?release_id=691876 are there any plans to update the Code::Blocks Installer with the MinGW setup ?

Thanx
N

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: MinGW with GCC4
« Reply #1 on: July 11, 2009, 06:53:24 am »
Hello

I would like to know, now that MinGW  is being shipped with GCC4 https://sourceforge.net/project/shownotes.php?release_id=691876 are there any plans to update the Code::Blocks Installer with the MinGW setup ?

Thanx
N


I hope the answer is no!

In my opinion, shipping  Code::Blocks with MinGW is a very bad Idea.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Ninds

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: MinGW with GCC4
« Reply #2 on: July 11, 2009, 01:03:37 pm »
I don't have an opinion either way. But we do ship xlw4 [ https://sourceforge.net/projects/xlw/files/ ] with support for Code::Blocks with libs built against the MinGW installed by the Code::Blocks installer. However we have now had people using Code::Blocks not being able to build xlw addins against  the new MinGW shipping with gcc4.

We really don't want provide two seperate xlw builds, one for a standalone MinGW install ( gcc4 ) and one for the Code::Blocks installed MinGW (gcc3). We already do that for Dev-C++, but support for Dev-C++ is being deprecated.


xlw4 is currently Beta and we're trying to figure out the best way to ship support for Code::Blocks & MinGW in the final release.


Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: MinGW with GCC4
« Reply #3 on: July 11, 2009, 02:00:15 pm »
That's why it is best CB does not ship with a compiler. I would also prefer it would not ship with a compiler. Because when we sip with a new version o GCC, your libraries might not be usable since hey are build with a newer/older GCC.

The question is for the 'dummu' user who wants to start some programming, a 'one' package *might* be interesting.

My personal opinion, if you start development, it would be good to understand what an IDE, compiler, debugger is.

By the way, with the TDM installer version of MinGW, this becomes very easy, that installer brings the whole MinGW stuff you actually need in one go. Much better then the zillion packages to download manually from MinGW.

Offline Ninds

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: MinGW with GCC4
« Reply #4 on: July 11, 2009, 02:04:44 pm »
By the way, with the TDM installer version of MinGW, this becomes very easy, that installer brings the whole MinGW stuff you actually need in one go. Much better then the zillion packages to download manually from MinGW.

What is TDM ?
Maybe we have to think of doing the same ....

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: MinGW with GCC4
« Reply #5 on: July 11, 2009, 03:08:43 pm »
By the way, with the TDM installer version of MinGW, this becomes very easy, that installer brings the whole MinGW stuff you actually need in one go. Much better then the zillion packages to download manually from MinGW.

What is TDM ?
Maybe we have to think of doing the same ....

See http://www.tdragon.net/recentgcc/
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Ninds

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: MinGW with GCC4
« Reply #6 on: July 11, 2009, 04:00:37 pm »
Ok, I had a look at the TDM MinGW site. I downloaded the installer and executed it. It seemed to work fine and provided what I needed, except make.
I was hoping to have installed a complete build environment.

But I am assuming C::B installs its own make.

Still a bit confused about what to do, it was very convenient for C::B to installed alongside its own MinGW, it meant less work for the end-user.

Will C::B pick up the TDM installation ?

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: MinGW with GCC4
« Reply #7 on: July 11, 2009, 05:23:36 pm »
That's why it is best CB does not ship with a compiler. I would also prefer it would not ship with a compiler. Because when we sip with a new version o GCC, your libraries might not be usable since hey are build with a newer/older GCC.
True, though on the other hand, we could probably avoid the rather common "I do this in Dev-CPP and it just works, but Code::Blocks say invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!], helpz helpz!!!11!" problem by offering an "all in one bundled" install.

Advantages and disadvantages, like everything in life.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline Ninds

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: MinGW with GCC4
« Reply #8 on: July 11, 2009, 06:33:00 pm »
Thats fair enough, so what are your intentions ? Will you continue to ship the previous version of MinGW or will you be upgrading to the more recent GCC4 ?

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: MinGW with GCC4
« Reply #9 on: July 11, 2009, 07:52:08 pm »
a first thing we will try is to build CB itself with  the latest MinGW release (in an upcoming nightly this switch is going to happen).

Offline Ninds

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: MinGW with GCC4
« Reply #10 on: July 11, 2009, 10:19:17 pm »
Thanks for the reply. But at the risk of sounding pushy, what is the timeline we are looking at. This information will help us plan a release for xlw4.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: MinGW with GCC4
« Reply #11 on: July 11, 2009, 11:01:38 pm »
a first thing we will try is to build CB itself with  the latest MinGW release (in an upcoming nightly this switch is going to happen).

Please remember to update the "exchndl.dll" for the New Compiler Version.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: MinGW with GCC4
« Reply #12 on: July 12, 2009, 09:44:48 am »
a first thing we will try is to build CB itself with  the latest MinGW release (in an upcoming nightly this switch is going to happen).

Please remember to update the "exchndl.dll" for the New Compiler Version.

Tim S

Thanks TIm, I would have forgotten this. Where can I get hold of it ?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: MinGW with GCC4
« Reply #13 on: July 12, 2009, 10:07:16 am »
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.