Author Topic: The 10 September 2007 build (4454) is out.  (Read 32085 times)

RazTK

  • Guest
Re: The 10 September 2007 build (4454) is out.
« Reply #15 on: September 11, 2007, 09:13:08 pm »

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: The 10 September 2007 build (4454) is out.
« Reply #16 on: September 11, 2007, 09:51:52 pm »

sergei

  • Guest
Re: The 10 September 2007 build (4454) is out.
« Reply #17 on: September 22, 2007, 02:16:53 am »
Sorry for the relatively late post, but I've found that this build introduced a bug not found in 4446 and earlier, and remains in later builds after 4454.

I'm using a batch file to define an environment variable %IDEDIR%, and then run Code::Blocks (that's to make Code::Blocks portable). Then I use %IDEDIR% to define include/lib folders by defining $(#ideenv) global variable as %IDEDIR%.

In 4446 and earlier that worked. E.g. when I right-clicked an #include statement and clicked to open that file, it opened it. Now in 4454 it says not found - same thing as if I ran Code::Blocks without the batch to define %IDEDIR%. I should note that it only happens when I open a project's cbp file, when I open the project through Code::Blocks, it works.

Since that might be important, here's the batch I use as a loader for Code::Blocks (it differentiates between running Code:Blocks or opening a cbp, but before 4454 that worked). The batch's StartCB.bat, and it's in the same directory as codeblocks.exe (so %~dp0 would be Code::Blocks' directory).

Code

@echo off

set cbdir=%~dp0
pushd %cbdir%
cd ..
set IDEDIR=%cd%
popd

if not (%1)==() goto HasParam

goto EndHasParam
:HasParam

set filedir=%~dp1
start %cbdir%codeblocks.exe %filedir%%~n1%~x1

goto :EOF
:EndHasParam

start %cbdir%codeblocks.exe