News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Windows Vista compatible compiler

Started by Szabadember, March 17, 2007, 11:02:49 PM

Previous topic - Next topic

Szabadember

Hi!
I have been using MinGW for a long time now, but i can't make it work on windows Vista. Could someone suggest me a good alternative for mingw? Or a way to make MinGW fully working on my windows Vista. I tried the trick with the environment variables but it does not work for me (gcc 3.4.2)

Grom

You are trying to work on Saturday... That is the problem :lol:.
gcc+winXP+suse.

Szabadember

#2
Maybe... :D

Ok, I played around a bit with Vista and realized, that my MinGW is working, but *only* if the project and the compiler are on the same drive (have the same drive letter), if not, i get an error: ld: crt2.o: No such file: No such file or directory

Any ideas? :D

One more thing: I would like to have a pre-compiled gdb 6.6(i'm to lazy and stupid to build it myself[any tutorials? :D]), could someone provide me a link?

Grom

Szabad control will catch you and give a kosher internet :lol:
gcc+winXP+suse.

Biplab

Quote from: Szabadember on March 17, 2007, 11:53:58 PM
Ok, I played around a bit with Vista and realized, that my MinGW is working, but *only* if the project and the compiler are on the same drive (have the same drive letter), if not, i get an error: ld: crt2.o: No such file: No such file or directory

Any ideas? :D

crt2.o is part of MinGW runtime libraries. Download it from:
Quotehttp://prdownloads.sourceforge.net/mingw/mingw-runtime-3.11.tar.gz?download

Quote from: Szabadember on March 17, 2007, 11:53:58 PM
One more thing: I would like to have a pre-compiled gdb 6.6(i'm to lazy and stupid to build it myself[any tutorials? :D]), could someone provide me a link?

Pre-compiled GDB 6.3 is already available from MinGW site. I tried to compile GDB sometimes back. But build failed. Will update if I get success.

Regards,

Biplab
Be a part of the solution, not a part of the problem.

Szabadember

Quotecrt2.o is part of MinGW runtime libraries. Download it from:

I already have this file under c:\MinGW\lib.
I get no error if the project and MinGW are on the same drive, i get this error only if they are located on different drives.
Any better ideas than saving projects on the drive where MinGW is located?

Biplab

Quote from: Szabadember on March 18, 2007, 05:37:13 PM
Any better ideas than saving projects on the drive where MinGW is located?

Sorry, I can't help further as I don't have Vista. But search this forum. Few users were discussing about this problem sometimes back. You may get the solution there. :)

Regards,

Biplab
Be a part of the solution, not a part of the problem.

Auria

Quote from: Szabadember on March 18, 2007, 05:37:13 PM
Quotecrt2.o is part of MinGW runtime libraries. Download it from:

I already have this file under c:\MinGW\lib.
I get no error if the project and MinGW are on the same drive, i get this error only if they are located on different drives.
Any better ideas than saving projects on the drive where MinGW is located?

I've never developed with neither windows nor MinGW so this is probably a stupid answer, but can't you place MinGW files on both drives? Seems like it's searching for these files on the same drive as the project

Szabadember

The goal would be to be able to compile without having these files on both drives...

Biplab

Be a part of the solution, not a part of the problem.

Szabadember

Solution:
  1:Place MinGW into the root of the same drive where you save your projects
  2:Add some environment variables to windows
  3:Add X:\MinGW\libexec\gcc\mingw32\3.4.5 as additional Path in the compiler settings/Toolchain executables
  4:Add X:\MinGW\lib\gcc\mingw32\3.4.5\include to the Compiler's search Paths
  5:Be happy, because your codeblocks is now Vista ready as long as you don't want to save projects to other drives than the drive where MinGW is installed :(

Szabadember

I have just noticed that GDB 6.3 is not working with windows vista... :(
I always get:
No source file named E:/Dokumentumok/c++ programozas/CareFreeTagger/main.cpp.
Breakpoint 1 ("E:/Dokumentumok/c++ programozas/CareFreeTagger/main.cpp:29) pending.

Or is that codeblocks fault?

takatod2

Hi
I have problems to install codeblocks in Windows Vista. I hope that you can help me.

Vampyre_Dark

Quote from: takatod2 on June 05, 2007, 10:07:45 PM
Hi
I have problems to install codeblocks in Windows Vista. I hope that you can help me.
? Code::Blocks runs the same on Vista as it does on XP (for me at least). Are you unzipping a nightly, or using the old install?

C::B  & VSC2005 is business as usual on Vista. I don't know if that counts as a MinGW alternative for you?
C::B Wishlist
~BOYCOTT THE EVIL YELLOW BOXES~

darthdespotism

#14
Finally I have my own problems with Vista. (I was forced to use Vista as my Notebook is only shipped with preinstalled Vista and I do need Win some time ;) )

I installed MinGW and tldragons 4.2 directly over it. Adding C:\MinGW and C:\MinGW\bin to %PATH% g++ --version gave the expected result.

But i tried to build the basic Hello World example both with Codeblocks and on the Commandline and it only resulted in a "mingw32-g++.exe CreateProcess: no such file or directory" (on the cmd which I although started as Administrator I used g++ instaed of mingw-g++)

EDIT://
May be important: As I was only able to force Vista giving me 40GB of the HDD ant I need them for my Ubuntu everythings on my C: - Partition

EDIT:// I finally solved it. running MinGW with -v both, on my WinXP-Box and my WinVista-Box gave me the paths that were required to run MinGW.