Author Topic: Windows Vista compatible compiler  (Read 11712 times)

Offline Szabadember

  • Multiple posting newcomer
  • *
  • Posts: 75
  • That's me!
Windows Vista compatible compiler
« on: March 17, 2007, 11:02:49 pm »
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)

Offline Grom

  • Almost regular
  • **
  • Posts: 206
Re: Windows Vista compatible compiler
« Reply #1 on: March 17, 2007, 11:46:14 pm »
You are trying to work on Saturday... That is the problem :lol:.
gcc+winXP+suse.

Offline Szabadember

  • Multiple posting newcomer
  • *
  • Posts: 75
  • That's me!
Re: Windows Vista compatible compiler
« Reply #2 on: March 17, 2007, 11:53:58 pm »
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?
« Last Edit: March 17, 2007, 11:58:35 pm by Szabadember »

Offline Grom

  • Almost regular
  • **
  • Posts: 206
Re: Windows Vista compatible compiler
« Reply #3 on: March 18, 2007, 12:30:38 am »
Szabad control will catch you and give a kosher internet :lol:
gcc+winXP+suse.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Windows Vista compatible compiler
« Reply #4 on: March 18, 2007, 03:02:30 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:
Quote
http://prdownloads.sourceforge.net/mingw/mingw-runtime-3.11.tar.gz?download

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.

Offline Szabadember

  • Multiple posting newcomer
  • *
  • Posts: 75
  • That's me!
Re: Windows Vista compatible compiler
« Reply #5 on: March 18, 2007, 05:37:13 pm »
Quote
crt2.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?

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Windows Vista compatible compiler
« Reply #6 on: March 18, 2007, 05:46:43 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.

Offline Auria

  • Almost regular
  • **
  • Posts: 152
Re: Windows Vista compatible compiler
« Reply #7 on: March 19, 2007, 01:23:09 am »
Quote
crt2.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

Offline Szabadember

  • Multiple posting newcomer
  • *
  • Posts: 75
  • That's me!
Re: Windows Vista compatible compiler
« Reply #8 on: March 20, 2007, 05:09:15 pm »
The goal would be to be able to compile without having these files on both drives...

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Windows Vista compatible compiler
« Reply #9 on: March 20, 2007, 05:39:36 pm »
Have a look at the following links. You may get your solution.

Quote
http://forums.codeblocks.org/index.php/topic,4692.0.html
and
Quote
http://aarongiles.com/?p=199
Be a part of the solution, not a part of the problem.

Offline Szabadember

  • Multiple posting newcomer
  • *
  • Posts: 75
  • That's me!
Re: Windows Vista compatible compiler
« Reply #10 on: March 27, 2007, 04:13:38 pm »
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 :(

Offline Szabadember

  • Multiple posting newcomer
  • *
  • Posts: 75
  • That's me!
Re: Windows Vista compatible compiler
« Reply #11 on: April 10, 2007, 10:22:13 pm »
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

  • Guest
Re: Windows Vista compatible compiler
« Reply #12 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.

Offline Vampyre_Dark

  • Regular
  • ***
  • Posts: 255
  • Hello!
    • Somewhere Over The Rainbow...
Re: Windows Vista compatible compiler
« Reply #13 on: June 06, 2007, 07:23:06 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~

Offline darthdespotism

  • Almost regular
  • **
  • Posts: 163
    • Coder's Nemesis
Re: Windows Vista compatible compiler
« Reply #14 on: June 07, 2007, 12:46:41 am »
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.
« Last Edit: June 09, 2007, 12:00:04 pm by darthdespotism »