Code::Blocks Forums

User forums => Nightly builds => Topic started by: killerbot on March 30, 2008, 11:51:26 pm

Title: The 30 March 2008 build (4977) is out.
Post by: killerbot on March 30, 2008, 11:51:26 pm
Get quick announcements through the RSS feed http://www.codeblocks.org/nightly/CodeBlock_RSS.xml

Before you use a nightly make sure you understand how it works (http://forums.codeblocks.org/index.php/topic,3232.0.html).

A link to the unicode windows wxWidget dll for Code::Blocks : http://prdownload.berlios.de/codeblocks/wxmsw28u_gcc_cb_wx287.7z

For those who might need this one (when no MingW installed on your system) : the mingw10m.dll : http://prdownload.berlios.de/codeblocks/mingwm10_gcc421.7z

The 30 March 2008 build is out.
  - Windows :
   http://prdownload.berlios.de/codeblocks/CB_20080330_rev4977_win32.7z
  - Linux :
   none

Resolved Fixed:


Regressions/Confirmed/Annoying/Common bugs:


Title: Re: The 30 March 2008 build (4977) is out.
Post by: pasgui on March 31, 2008, 01:55:39 am
Build for Ubuntu i386/amd64 can be found here (http://lgp203.free.fr/spip/spip.php?article1)

Best regards, pasgui
Title: I need Class wizard more smart, thanks!
Post by: Loaden on March 31, 2008, 10:41:46 am
When i add a class, the class name start with 'C', example: CTest, CRegKey, CMailList, i want the filename can not include 'c', not 'cregkey.h', but 'regkey.h' .
and Guard block also not include 'C'. not 'CREGKEY_H', but 'REGKEY_H'.

the end: i want Guard block can modify by need. example, modify to : REGKEY_H_INCLUDE.

my english is bad, sorry!
thanks!
Title: Re: I need Class wizard more smart, thanks!
Post by: MortenMacFly on March 31, 2008, 01:04:57 pm
When i add a class, the class name start with 'C', example: CTest, CRegKey, CMailList, i want the filename can not include 'c', not 'cregkey.h', but 'regkey.h' . and Guard block also not include 'C'. not 'CREGKEY_H', but 'REGKEY_H'.
the end: i want Guard block can modify by need. example, modify to : REGKEY_H_INCLUDE.
Well... in fact all of it you can do already. Mind trying before asking?!
Title: Re: I need Class wizard more smart, thanks!
Post by: MortenMacFly on March 31, 2008, 01:09:45 pm
Well... in fact all of it you can do already. Mind trying before asking?!
Here it comes for your convenience:
(http://img361.imageshack.us/img361/4999/classwizax5.png) (http://imageshack.us)
Title: Re: The 30 March 2008 build (4977) is out.
Post by: Jenna on March 31, 2008, 02:37:54 pm
A source-tarball and binaries for debian (32- and 64-bit) can be downloaded from my server (see signature).
There are also precompiled packages with wxWidgets cross-compile libraries available for download.
Title: Re: I need Class wizard more smart, thanks!
Post by: Loaden on March 31, 2008, 04:56:56 pm
Well... in fact all of it you can do already. Mind trying before asking?!
Here it comes for your convenience:
(http://img361.imageshack.us/img361/4999/classwizax5.png) (http://imageshack.us)

Before my ask, I do it. but it is manual.
I hope it can auto to it by some options.
thank you reply!
thanks to CB and CB developers!
Title: Re: The 30 March 2008 build (4977) is out.
Post by: Xaviou on March 31, 2008, 09:20:33 pm
Ubuntu 6.10 & 7.04 Amd64 tar.gz archive (containing '.deb' installers builds with wx284) can be found here (http://www.esnips.com/web/CodeBlocks).
Title: Re: I need Class wizard more smart, thanks!
Post by: byo on March 31, 2008, 10:36:25 pm
Before my ask, I do it. but it is manual.
I hope it can auto to it by some options.
thank you reply!
thanks to CB and CB developers!

I hope it will be implemented as optional feature, I got really annoyed when VS did this automatically for me.

Regards
  BYO
Title: Re: The 30 March 2008 build (4977) is out.
Post by: marfi on April 01, 2008, 09:38:13 am
Hi, it would be a nice feature of the class wizard to allow users to select a base class for inheritance from a list containing all classes existing in the project (i.e. displayed in the Symbols browser) - of course the ability to enter non-existing class name should be preserved. Another useful improvement would be a possibility to open the class wizard from the Symbols browser's context menu: in this case a new class defined in the class wizard should be inherited from a class currently selected in the Symbols browser.
Title: project compile process break during RC compiling!
Post by: starofrainnight on April 01, 2008, 01:04:08 pm
the problem seems releated to new feature of  "Added : /nologo to resource compiler of MSVC-8 "

I was using VC2008 express in windows xp sp2

now, i have to restore to last nightly build (4966)  :?

the build log is :

Code
-------------- Build: Debug in Passthru ---------------

[ 14.3%] cl.exe /nologo /Gz /Od /W3 /c /Zp8 /DWINVER=0X500 /DUNICODE /D_UNICODE /D_X86_ /DSTD_CALL /DWIN32_LEAN_AND_MEAN /DNT_UP /DNDIS_MINIPORT_DRIVER /DNDIS50_MINIPORT /DNDIS50 /DNDIS_WDM=1  /MTd /Zi /D_DEBUG /Zi /DDBG /DDEBUG /D_DEBUG  /GS /WX /D_MSC_VER=1500   /ID:\sb\winddk\include /Id:\sb\vc2008\VC\include /ID:\sb\winddk\inc\wxp /ID:\sb\winddk\inc\ddk\wxp /ID:\sb\winddk\inc\ddk\wdm\wxp /ID:\sb\sdks\libnet\include /ID:\sources\vc7\RaBird\src\C++\rabird  -ID:\sources\codeblocks\rabird_branch\starofrainnight\Passthru /c miniport.c /FoDebug\miniport.obj
miniport.c
[ 28.6%] cl.exe /nologo /Gz /Od /W3 /c /Zp8 /DWINVER=0X500 /DUNICODE /D_UNICODE /D_X86_ /DSTD_CALL /DWIN32_LEAN_AND_MEAN /DNT_UP /DNDIS_MINIPORT_DRIVER /DNDIS50_MINIPORT /DNDIS50 /DNDIS_WDM=1  /MTd /Zi /D_DEBUG /Zi /DDBG /DDEBUG /D_DEBUG  /GS /WX /D_MSC_VER=1500   /ID:\sb\winddk\include /Id:\sb\vc2008\VC\include /ID:\sb\winddk\inc\wxp /ID:\sb\winddk\inc\ddk\wxp /ID:\sb\winddk\inc\ddk\wdm\wxp /ID:\sb\sdks\libnet\include /ID:\sources\vc7\RaBird\src\C++\rabird  -ID:\sources\codeblocks\rabird_branch\starofrainnight\Passthru /c passthru.c /FoDebug\passthru.obj
passthru.c
[ 42.9%] rc.exe /nologo /ID:\sb\vc2008\VC\include /ID:\sb\winddk\inc\wxp /ID:\sb\winddk\inc\ddk\wxp /ID:\sb\winddk\inc\ddk\wdm\wxp  -ID:\sources\codeblocks\rabird_branch\starofrainnight\Passthru -foDebug\passthru.res passthru.rc

fatal error RC1106: invalid option: -ologo
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
Title: Re: project compile process break during RC compiling!
Post by: Biplab on April 01, 2008, 03:31:54 pm
the problem seems releated to new feature of  "Added : /nologo to resource compiler of MSVC-8 "

Thanks for pointing this. Reverted in revision 4979. Please wait for the next nightly. Sorry for the inconvenience caused. :(
Title: Re: The 30 March 2008 build (4977) is out.
Post by: stahta01 on April 02, 2008, 02:12:39 am
Missing Headers when compiled under Windows (NON PCH).

Tim S


Index: src/plugins/compilergcc/compilerLCC.cpp
===================================================================
--- src/plugins/compilergcc/compilerLCC.cpp   (revision 4982)
+++ src/plugins/compilergcc/compilerLCC.cpp   (working copy)
@@ -11,6 +11,8 @@
 // this compiler is valid only in windows
 
 #include <sdk.h>
+#include "logmanager.h"
+#include "manager.h"
 #include "compilerLCC.h"
 #include <wx/intl.h>
 #include <wx/regex.h>
Title: Re: The 30 March 2008 build (4977) is out.
Post by: Loaden on April 02, 2008, 02:43:34 am
Please add a option to make all obj file in the same folder, example: 'Object output dir'.
If can do, build a project like VS will most easy.
But now, CB user must set sub folder in the build option.
Thank you very much!
Title: Re: The 30 March 2008 build (4977) is out.
Post by: PsYhLo on April 02, 2008, 07:32:40 am
Code
make[5]: *** No rule to make target `all'.  Stop.
make[5]: Leaving directory `/home/psyhlo/devel/cb-src/src/plugins/scriptedwizard/resources/matlab_csf'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/psyhlo/devel/cb-src/src/plugins/scriptedwizard/resources'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/psyhlo/devel/cb-src/src/plugins/scriptedwizard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/psyhlo/devel/cb-src/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/psyhlo/devel/cb-src/src'
make: *** [all-recursive] Error 1
svn 4982
Title: Re: The 30 March 2008 build (4977) is out.
Post by: killerbot on April 02, 2008, 01:04:14 pm
Missing Headers when compiled under Windows (NON PCH).

Tim S


Index: src/plugins/compilergcc/compilerLCC.cpp
===================================================================
--- src/plugins/compilergcc/compilerLCC.cpp   (revision 4982)
+++ src/plugins/compilergcc/compilerLCC.cpp   (working copy)
@@ -11,6 +11,8 @@
 // this compiler is valid only in windows
 
 #include <sdk.h>
+#include "logmanager.h"
+#include "manager.h"
 #include "compilerLCC.h"
 #include <wx/intl.h>
 #include <wx/regex.h>

DONE.
Title: Re: The 30 March 2008 build (4977) is out.
Post by: Loaden on April 02, 2008, 04:00:31 pm
In VC2005 compiler, i want use '/Fo' option to set obj file output dir, but it disable. the error msg is:
   cl : Command line warning D4025 : overriding '/FoD:\obj' with '/FoD:\obj\src\Test.obj'

In the same compiler, the option of '[/Zi /D_DEBUG]', this option can not use in NDEBUG mode, so when i build a release version, i can't add a debug info to bin file.
I hope change this option to [/Zi], not '[/Zi /D_DEBUG]'.
Thanks!

Linker settings can not add '/DEBUG' in a new line, but can do it like '/DEBUG /PDB:"$(BIN)\Test.pdb"'

A new bug: 'Display build progress bar' are not work.
Title: Re: The 30 March 2008 build (4977) is out.
Post by: Biplab on April 02, 2008, 04:48:49 pm
Code
make[5]: *** No rule to make target `all'.  Stop.
make[5]: Leaving directory `/home/psyhlo/devel/cb-src/src/plugins/scriptedwizard/resources/matlab_csf'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/psyhlo/devel/cb-src/src/plugins/scriptedwizard/resources'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/psyhlo/devel/cb-src/src/plugins/scriptedwizard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/psyhlo/devel/cb-src/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/psyhlo/devel/cb-src/src'
make: *** [all-recursive] Error 1
svn 4982

Fixed in revision 4984.
Title: Re: The 30 March 2008 build (4977) is out.
Post by: cacb on April 02, 2008, 08:42:09 pm
  • Fixed: Now C::B would not prompt to select missing compiler for Targets not supported by current platform

Hi, I installed 4977 (thanks!) on Kubuntu 7.10 with wxWidgets 2.8.7. I still get the same dialogs about missing compiler for build targets not used under Linux

Code
The defined compiler for W32_Debug cannot be located (ID:msvc8)

This happens on linux even though the build target is defined to be for the Windows platform only.
Title: Re: The 30 March 2008 build (4977) is out.
Post by: Biplab on April 03, 2008, 07:32:05 am
Hi, I installed 4977 (thanks!) on Kubuntu 7.10 with wxWidgets 2.8.7. I still get the same dialogs about missing compiler for build targets not used under Linux

Code
The defined compiler for W32_Debug cannot be located (ID:msvc8)

This happens on linux even though the build target is defined to be for the Windows platform only.

When does it occur?? During project loading or compiling? :)
Title: Re: The 30 March 2008 build (4977) is out.
Post by: cacb on April 03, 2008, 08:13:00 pm
When does it occur?? During project loading or compiling? :)

It occurs during project/workspace loading  8) .  I have a workspace with a couple of inter-dependent projects, and get the message once per project (even if the Windows target is not active).
Title: Re: The 30 March 2008 build (4977) is out.
Post by: stahta01 on April 03, 2008, 10:21:40 pm
Patch is needed to compile under Windows when NOT using PCH (Pre-Compiled Headers)

Note: The include <wx/gauge.h> must be before the include of headersdetectordlg.h on Windows OS.
This is because of wxWidgets design issue no fault of Code::Blocks. You could add the include to headersdetectordlg.h.

My Patch moves the include headersdetectordlg.h to be the last include in file headersdetectordlg.cpp.

Tim S

Code
Index: src/plugins/contrib/lib_finder/headersdetectordlg.cpp
===================================================================
--- src/plugins/contrib/lib_finder/headersdetectordlg.cpp (revision 4986)
+++ src/plugins/contrib/lib_finder/headersdetectordlg.cpp (working copy)
@@ -1,4 +1,3 @@
-#include "headersdetectordlg.h"
 
 //(*InternalHeaders(HeadersDetectorDlg)
 #include <wx/sizer.h>
@@ -11,6 +10,8 @@
 
 #include <encodingdetector.h>
 
+#include "headersdetectordlg.h"
+
 //(*IdInit(HeadersDetectorDlg)
 const long HeadersDetectorDlg::ID_STATICTEXT1 = wxNewId();
 const long HeadersDetectorDlg::ID_STATICTEXT3 = wxNewId();
Title: Re: The 30 March 2008 build (4977) is out.
Post by: killerbot on April 04, 2008, 09:11:47 am
done
Title: Re: The 30 March 2008 build (4977) is out.
Post by: fackue on April 07, 2008, 03:35:49 am
I'd like to see the left\right buttons to scroll your open tabs scroll your tabs on mouse down or up rather than single click. When it's "double-clicked" the tabs do not move.
Title: Re: The 30 March 2008 build (4977) is out.
Post by: gd_on on April 10, 2008, 08:05:55 pm
 :P :P :P :P :P :P
Wouh  :lol: :lol: :lol: :lol:
I've just built svn 5000 on my PC.
Nice number isn't it !!!!

Thanks to all

gd_on
Title: Re: The 30 March 2008 build (4977) is out.
Post by: hawk on April 14, 2008, 04:09:05 pm
Sorry if I writing to you in wrong theme, but I should get the answer in short time.
My CodeBlocks 8.02 doesn't mark up the lines with errors, when I "doubleclicking" to the error in build messages log! How can I fix it, koz i saw this function working at another PC. Please.
Title: Re: The 30 March 2008 build (4977) is out.
Post by: Pecan on April 18, 2008, 04:08:47 pm
svn build  rev 4999 (2008-04-06T11:09:14.941468Z)   gcc 3.4.5 Windows/unicode

Directory structure
cbSnipSearch
  App
  Plugin
  Editor

I cut two file from App, pasted them to Plugin with Explorer.
CB says "file deleted, keep them open or close?"
I responded "with the close option"
CB crashed

Program received signal SIGSEGV, Segmentation fault.
---Type <return> to continue, or q <return> to quit---bt
0x00b92f64 in ProjectFile::SetFileState (this=0xfeeefeee, state=fvsMissing)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/projectfile.cpp:274
274         if (state != m_VisualState)
Current language:  auto; currently c++
(gdb) bt
#0  0x00b92f64 in ProjectFile::SetFileState (this=0xfeeefeee, state=fvsMissing)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/projectfile.cpp:274
#1  0x00b34ee4 in EditorManager::CheckForExternallyModifiedFiles (
    this=0x2dd1db0) at c:/Usr/Proj/cbBeta/trunk/src/sdk/editormanager.cpp:869
#2  0x00b3f069 in EditorManager::OnCheckForModifiedFiles (this=0x2dd1db0,
    event=@0x537d2d8)
    at c:/Usr/Proj/cbBeta/trunk/src/sdk/editormanager.cpp:2507
#3  0x627c8185 in wxEvtHandler::ProcessEventIfMatches ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
#4  0x627c84dc in wxEventHashTable::HandleEvent ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
#5  0x627c94a9 in wxEvtHandler::ProcessEvent ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
#6  0x627c92c9 in wxEvtHandler::ProcessPendingEvents ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
#7  0x62701bf4 in wxAppConsole::ProcessPendingEvents ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
#8  0x62cc47c5 in wxIdleWakeUpModule::MsgHookProc ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
#9  0x77d4ed1a in USER32!IsCharAlphaW () from C:\WINDOWS\system32\user32.dll
#10 0x00000000 in ?? () from
#11 0x00000001 in ?? ()
#12 0x0022facc in ?? ()
---Type <return> to continue, or q <return> to quit---
Title: Re: The 30 March 2008 build (4977) is out.
Post by: Biplab on April 18, 2008, 06:34:08 pm
svn build  rev 4999 (2008-04-06T11:09:14.941468Z)   gcc 3.4.5 Windows/unicode

Directory structure
cbSnipSearch
  App
  Plugin
  Editor

I cut two file from App, pasted them to Plugin with Explorer.
CB says "file deleted, keep them open or close?"
I responded "with the close option"
CB crashed

Though I couldn't reproduce the crash in my PC, but I think the following patch can fix this crash. :)

Code
Index: src/sdk/editormanager.cpp
===================================================================
--- src/sdk/editormanager.cpp (revision 5006)
+++ src/sdk/editormanager.cpp (working copy)
@@ -863,10 +863,10 @@
                 ed->SetModified(true);
             else
             {
-                ed->Close();
                 ProjectFile* pf = ed->GetProjectFile();
                 if (pf)
                     pf->SetFileState(fvsMissing);
+                ed->Close();
             }
             continue;
         }