User forums > Help

Problem with GNU GCC compiler

(1/2) > >>

madmike:
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.

killerbot:
Which OS ?

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

madmike:
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?

Pecan:
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.

killerbot:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version