Author Topic: Codeblock do not start properly  (Read 5561 times)

Offline luisalberto

  • Multiple posting newcomer
  • *
  • Posts: 10
Codeblock do not start properly
« on: November 15, 2009, 11:16:55 pm »
Iam using Codeblocks ver. svn rev5911 on Windows Vista Basic. When I start Codeblocks the welcome splash screen appear and then the program seems to be halted. When I check the Windows Task Manager both compilers mingw32-gcc-4.4.0.exe and mingw32-gcc.exe has been called and are in memory. And it is only when I kill those processes using Windows task manager that Codeblocks can be started normally. Today I removed the path c:\mingw\bin from the Path environment variable from Vista to see if Codeblock IDE do not find the compilers and could be started normally but to no avail. It continues loading in memory those compilers and do not start until I kill the compiler processes. Perhaps those compilers are waiting to compile something and the Codeblocks start up process is halted. Perhaps Codeblocks ask the compilers their version number and as a result the start up is halted do to a version mismatch. This has been occurring in the last 3 nighties but do not occurred on Windows XP. I have Mingw version 4.4.0 installed.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Codeblock do not start properly
« Reply #1 on: November 16, 2009, 03:12:34 am »
I also have vista basic, and install the codeblocks SVN and TDM GCC 4.4.1. I haven't meet this problem. The most probability is like your said:

Quote
Perhaps those compilers are waiting to compile something and the Codeblocks start up process is halted. Perhaps Codeblocks ask the compilers their version number and as a result the start up is halted do to a version mismatch.

 :D
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Codeblock do not start properly
« Reply #2 on: November 16, 2009, 06:37:35 am »
Perhaps Codeblocks ask the compilers their version number and as a result the start up is halted do to a version mismatch.
I doubt this happens casue such functionality is not implemented.

However - please enable full compiler logging (see my sig), than note down the command line C::B is using to compile your file and try exactly that in a command shell (command prompt) on Windows to see what happens. If it happens in the command shell, too it seems to be an issue with the compiler.

Do you have setup MinGW/GCC as defualt compiler, or as a copied compiler?
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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Codeblock do not start properly
« Reply #3 on: November 16, 2009, 06:59:05 am »
If I understand it correctly the OP has a problem starting C::B.

And while starting we call in fact the standard compiler (compilerMINGW.cpp:368) to determine the version-string.

I can not see if something wents wrong here, but instead of only removing the MiNG's path from environment, I suggest renaming the folder MinGW resides in, because C::B executes the gcc in the compiler's masterpath.

Another possibility would be to rename C::B's config-folder (the one where default.conf is in,  don't know the vista path at the moment, because I'm on linux), to see if it works then.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Codeblock do not start properly
« Reply #4 on: November 16, 2009, 09:20:00 am »
And while starting we call in fact the standard compiler (compilerMINGW.cpp:368) to determine the version-string.
Yes, but if that may fail it's quite certain that calling the compiler for other purposes (e.g. ... erm... compiling?!) fails, too.

For me it works just fine under Vista (ult.) daily.
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

Offline luisalberto

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Codeblock do not start properly
« Reply #5 on: November 16, 2009, 10:36:27 pm »
I have renamed the c:\MinGw directory to c:\MinGW1 and only then I can start Codeblocks without any problem. Previously I have deleted C::B's config-folder (the one where default.conf) is and C::B creates a new one with the default configuration asking me again for the default compiler. I also change the default compiler to VC2008 and it continues loading the compilers in memory and with the program halted. I continuosly use VC2008 and Codeblocks for one of my program that compiles using makefiles. One program for VC2008 (nmake.exe) and other for MinGW (mingw32-make). I have also always compiled wxwidgets using mingw32-make on the command line window on Vista and I do not have any problem. Right now I am starting to believe that the start up sequence of C::B asking for version string to the compilers perhaps needs a switch like -v but I do not Know. Thanks for your help and congratulations for the great IDE that is C::B.