Author Topic: Problem with GNU GCC compiler  (Read 7040 times)

madmike

  • Guest
Problem with GNU GCC compiler
« on: December 01, 2006, 10:56:58 pm »
Hi everybody!
So i have a problem with using GNU GCC compiler.
I've downloaded and install the last release of gnu gcc compiler, unpacked it to the c:\MinGW. Downloaded last build of code blocks, unpacked it into c:\CodeBlocks. Created a default project with "Hello world" program and tied to compile it.
So at first the program said that couldn't find a cc1plus, so i had to set an additional dirrectory - C:\MinGW\libexec\gcc\mingw32\3.4.5. Then it said: ld: crtbegin.o: No such file: No such file or directory
so i tried to set a folder - C:\MinGW\lib\gcc\mingw32\3.4.2 (where i found this file) but it didn't helped.
« Last Edit: December 02, 2006, 12:08:40 pm by madmike »

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: Problem with GNU GCC compiler
« Reply #1 on: December 02, 2006, 09:30:13 am »
Which OS ?

I had the same problem this week for that cc1plus.exe on Windows Vista.

madmike

  • Guest
Re: Problem with GNU GCC compiler
« Reply #2 on: December 02, 2006, 12:07:26 pm »
Yes exactly Windows Vista.
I found that this is a problem of gnu gcc compiler by itself.
The tool mingw32-c++.exe doesn't have paths to all necessary folders where headers and objects are, and it seems to me that it's only a Windows Vista problem. It's possible sure to set all paths in the system PATH but i don't think it's the best sollution and in fact compiler even in this case can't link objects.
So does anybody know how to make work this gnu gcc compiler under this Windows Vista or the only way now is to come back to Windows XP?

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2874
Re: Problem with GNU GCC compiler
« Reply #3 on: December 02, 2006, 01:27:18 pm »
If vista allows you to run a .cmd file, just specifiy all the paths in a "path=" statement, then launch CB from within the .cmd file.

This works well with GDB also.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: Problem with GNU GCC compiler
« Reply #4 on: December 02, 2006, 01:47:02 pm »
I think it's a MinGW problem, since those extra paths are also not specified in the PATH in XP, and nevertheless in XP it works.

Aside : my first Vista experiments are horror, horror, horror.

madmike

  • Guest
Re: Problem with GNU GCC compiler
« Reply #5 on: December 02, 2006, 02:36:55 pm »
Well I think they'll make new build compatible with Vista later so now it is simplier to use XP or Linux (it isn't so important for me).
But if someone knows any simple ways to solve this problem (i mean make gnu gcc work fine with all paths in Vista) please tell it.
And in addition if someone knows an old MinGW Studio (http://www.parinyasoft.com/) so the version with integrated gnu gcc compiler works fine in Vista without adding any additional paths...

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: Problem with GNU GCC compiler
« Reply #6 on: December 02, 2006, 03:13:02 pm »
when I added in CB, the following path C:\MinGW\libexec\gcc\mingw32\3.4.5. to the extra paths I could compile and build "hello world". Will try to build it on the command line on Monday and post in the MinGW forum (if I can find them again, so unclear organized).

madmike

  • Guest
Re: Problem with GNU GCC compiler
« Reply #7 on: December 03, 2006, 03:34:57 pm »
Hm so i found the same problem (with linking a crtbegin.o) in Windows XP (it seems to me that it's a problem of the last version of gnu gcc 3.4.5), so i had to move this file manually from C:\MinGW\lib\gcc\mingw32\3.4.2 to C:\MinGW\lib and this helped.
So in Windows Vista it works too but u have to set extra paths to all necessary folders.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Problem with GNU GCC compiler
« Reply #8 on: December 03, 2006, 08:05:24 pm »
Vista is at the present time generally not supported by MinGW, and will not be officially supported by Code::Blocks for the near future, either. Most importantly, that's because Microsoft made certain things deliberately complicated or impossible under Vista.

We currently have no testing platform, and it is unsure when that'll be the case. Among the things that are most uncertain are the plugin framework and the web-update system. We do not presently know if and how they will (or will not) work with Vista.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."