Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: KirkD on April 27, 2006, 02:13:17 am

Title: GCC, MinGW, CodeBlocks, WinXP, and LINUX
Post by: KirkD on April 27, 2006, 02:13:17 am
Yes, that's a lot to digest!

Essentially my goal is to have compatible environments for development on LINUX and WinXP.  CodeBlocks has risen to the top for IDEs, but I'm starting to have some fundamental questions arise that I cannot answer.

The current stable release of CodeBlocks for Windows comes with MinGW 3.4.4 (GCC 3.4.4, I assume), but the current GCC version is 4.1.0.  I assume I need to match my GCC versions between my XP box and my LINUX box, which is not a big deal on LINUX, but what about the Windows side?  Is it possible to upgrade MinGW to contain the latest GCC stable release (4.1.0)?  Do I have to compile it from sources myself?  Also, how does this impact CodeBlocks? 

There's also the wxWidgets issue between the two systems which might become challenging.

I'm also running into some configuration issues on LINUX getting the install going.  I probably need to upgrade my LINUX core but that's another issue for another day.  Regardless, any tips or tricks are GREATLY appreciated!!


-Kirk

Title: Re: GCC, MinGW, CodeBlocks, WinXP, and LINUX
Post by: Conan Kudo on April 27, 2006, 02:42:15 am
Ceniza has made a GCC 4.1.0 snapshot for Windows, however, it is not very wx-friendly... However, GCC 3.4.x is compatible with GCC 4.x, but not vice versa, AFAIK.. My installer includes MinGW 3.4.5, while the one that comes with RC2 contains 3.4.4... I used Fedora RPMs to install C::B on my Linux distro.. What distro are you using?
Title: Re: GCC, MinGW, CodeBlocks, WinXP, and LINUX
Post by: KirkD on April 27, 2006, 04:44:25 am
I'm on Fedora Core 3, but when I use the RPMs I get missing dependency errors.  I'm away from my LINUX box right now, but I can post the specific errors later.

I did figure out that 1.0-RC2 comes with MinGW containing 3.4.4.  3.4.5 is the latest "stable" release of GCC rather than 4.1.0 as I mentioned above.  4.1.0 is the most current, but also the newest active series.  The short story is that 3.4.5 would be the best option, and it looks like a nightly snapshot might be the way to go there.

Regarding the LINUX releases, do they come with GCC, wx, etc. or do they have to be installed independently?

Thanks!

-kirk

Title: Re: GCC, MinGW, CodeBlocks, WinXP, and LINUX
Post by: Conan Kudo on April 27, 2006, 04:47:13 am
wxWidgets must be installed separately... Most Linux distros, excluding Freespire and Ubuntu (afaik), include GCC in standard distribution, you just have to choose to install it 8) Other than that... I'm using Fedora Core 4 with the latest C::B SVN, and nothing happened, it just installed correctly... It pulled deps from the Fedora Extras...
Title: Re: GCC, MinGW, CodeBlocks, WinXP, and LINUX
Post by: KirkD on April 27, 2006, 05:33:30 am
Yes, my LINUX install has GCC, but the version needs to be updated.  I wondered if the CodeBlocks package for LINUX contains GCC.  It appears, though I haven't found this to be definitively true, that the LINUX distribution of CodeBlocks will require independent installation of all the puzzle pieces.

-kirk

Title: Re: GCC, MinGW, CodeBlocks, WinXP, and LINUX
Post by: Michael on April 27, 2006, 11:45:05 am
I wondered if the CodeBlocks package for LINUX contains GCC.

AFAIK no.

Anyway, let me point out your attention to this post that could be useful for you:

http://forums.codeblocks.org/index.php?topic=2688.0

Best wishes,
Michael
Title: Re: GCC, MinGW, CodeBlocks, WinXP, and LINUX
Post by: KirkD on April 27, 2006, 05:25:58 pm
Thanks for the links!  Those help a lot!

-Kirk