Author Topic: Problems compiling in Vista  (Read 6026 times)

Phant

  • Guest
Problems compiling in Vista
« on: November 29, 2007, 10:49:37 pm »
I downladed the latest nightly build of codeblocks and i'm trying to use it at Windows Vista. And surprise... i can´t. I search for solutions and between google and this forum, i found many comments related with this issue. After spent hours fighting to put the compiler working i end in a error like this:

C-------------- Build: Debug in exerc ---------------

Linking console executable: bin\Debug\exerc.exe
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lstdc++
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings

Seems i will need some help. Thank you all.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Problems compiling in Vista
« Reply #1 on: November 29, 2007, 11:07:06 pm »
I search for solutions and between google and this forum, i found many comments related with this issue.

Search the forum using "vista collect2", without the quotes...
Be patient!
This bug will be fixed soon...

Phant

  • Guest
Re: Problems compiling in Vista
« Reply #2 on: November 29, 2007, 11:22:02 pm »
Quote
Search the forum using "vista collect2", without the quotes...
Quote

I just did! But i can´t find a solution for my problem. Can you be more specific? Sorry about the inconvenient.  :?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Problems compiling in Vista
« Reply #3 on: November 30, 2007, 07:31:29 am »
I just did! But i can´t find a solution for my problem. Can you be more specific? Sorry about the inconvenient.  :?
The MinGW GCC 3.4.5 compiler suite has issues with Windows Vista and simply won't work out-of-the-box. The result is as you described. There are several hacks around to resolve the problem. I personally see only 2 serious solutions:

1.) Use the 4.x.x compiler streamline. They are not yet officially released (only as "technology preview") but they woirk with vista. Alternatively you can also use TDragon's GCC (google for it) which is also 4.x.x based. Keep in mind that I wouldn't use it for production code - as it is still some kind of an alpha/beta release under Windows, really.

2.) Use already re-compiled 3.4.5 binaries from Danny Smith who fixed this bug. But keep in mind they are gcc and g++ only. If you use other languages (like Fortran) you are lost here. You can download the update (!) from Brian Dessent here: http://dessent.net/tmp/gcc-vista-3.4.5-20060117-1.tar.gz (see: http://gcc.gnu.org/ml/gcc/2007-05/msg00228.html more more info).

With regards, Morten.

Ps.: Searching the forum before would have revealed the same. I guess that's why mandrav was not so mcuh into many words. ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

yaninahemilse

  • Guest
Re: Problems compiling in Vista
« Reply #4 on: May 06, 2008, 03:25:10 pm »
I just did! But i can´t find a solution for my problem. Can you be more specific? Sorry about the inconvenient.  :?
The MinGW GCC 3.4.5 compiler suite has issues with Windows Vista and simply won't work out-of-the-box. The result is as you described. There are several hacks around to resolve the problem. I personally see only 2 serious solutions:

1.) Use the 4.x.x compiler streamline. They are not yet officially released (only as "technology preview") but they woirk with vista. Alternatively you can also use TDragon's GCC (google for it) which is also 4.x.x based. Keep in mind that I wouldn't use it for production code - as it is still some kind of an alpha/beta release under Windows, really.

2.) Use already re-compiled 3.4.5 binaries from Danny Smith who fixed this bug. But keep in mind they are gcc and g++ only. If you use other languages (like Fortran) you are lost here. You can download the update (!) from Brian Dessent here: http://dessent.net/tmp/gcc-vista-3.4.5-20060117-1.tar.gz (see: http://gcc.gnu.org/ml/gcc/2007-05/msg00228.html more more info).

With regards, Morten.

Ps.: Searching the forum before would have revealed the same. I guess that's why mandrav was not so mcuh into many words. ;-)

Here's my problem...
I'm not an English native, I'm very very way too very new to the programming world and CodeBlocks in Windows Vista keeps throwing me this ungodly warning whenever I try to compile or even start a new proyect (see attachment).

Thanks in advance and I'm very sorry if this isn't the right topic but I'm starting to feel hopeless just because I can't use my notebook in class.

[attachment deleted by admin]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Problems compiling in Vista
« Reply #5 on: May 06, 2008, 03:45:59 pm »
Here's my problem...
You need to install a more recent MinGW compiler suite because that is an issue with old MinGW compiler on Windows Vista. Look here:
http://sourceforge.net/forum/forum.php?forum_id=815819
Download the appropriate packages, e.g. gcc-3.4.5-20060117-3 and all others you need (C++, core...).

Thanks in advance and I'm very sorry if this isn't the right topic but I'm starting to feel hopeless just because I can't use my notebook in class.
Next time please start a new thread and/or search some more in the forums - this has been asked at least two times. ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ