Author Topic: The 30 March 2008 build (4977) is out.  (Read 33785 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5239
Re: The 30 March 2008 build (4977) is out.
« Reply #15 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.

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: The 30 March 2008 build (4977) is out.
« Reply #16 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.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: The 30 March 2008 build (4977) is out.
« Reply #17 on: April 02, 2008, 04:48:49 pm »
Code: [Select]
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.
Be a part of the solution, not a part of the problem.

Offline cacb

  • Regular
  • ***
  • Posts: 426
Re: The 30 March 2008 build (4977) is out.
« Reply #18 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: [Select]
    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.

    Offline Biplab

    • Developer
    • Lives here!
    • *****
    • Posts: 1874
      • Biplab's Blog
    Re: The 30 March 2008 build (4977) is out.
    « Reply #19 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: [Select]
    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? :)
    Be a part of the solution, not a part of the problem.

    Offline cacb

    • Regular
    • ***
    • Posts: 426
    Re: The 30 March 2008 build (4977) is out.
    « Reply #20 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).

    Offline stahta01

    • Lives here!
    • ****
    • Posts: 6941
      • My Best Post
    Re: The 30 March 2008 build (4977) is out.
    « Reply #21 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: [Select]
    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();
    C Programmer working to learn more about C++ and Git.
    On Windows 7 64 bit and Windows 10 32 bit.
    On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
    --
    When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

    Offline killerbot

    • Administrator
    • Lives here!
    • *****
    • Posts: 5239
    Re: The 30 March 2008 build (4977) is out.
    « Reply #22 on: April 04, 2008, 09:11:47 am »
    done

    Offline fackue

    • Multiple posting newcomer
    • *
    • Posts: 10
    Re: The 30 March 2008 build (4977) is out.
    « Reply #23 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.

    Offline gd_on

    • Lives here!
    • ****
    • Posts: 560
    Re: The 30 March 2008 build (4977) is out.
    « Reply #24 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
    Windows 10, svn C::B (last version or almost!), WxWidgets 3.1.4 (git), Compilers 8.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\MinGW64) or 32 bits (sjlj, posix in C:\MinGW32). Tests and switch to msys2 and gcc 10.1 compilers.

    hawk

    • Guest
    Re: The 30 March 2008 build (4977) is out.
    « Reply #25 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.

    Offline Pecan

    • Plugin developer
    • Lives here!
    • ****
    • Posts: 2250
    Re: The 30 March 2008 build (4977) is out.
    « Reply #26 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,
        [email protected])
        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---

    Offline Biplab

    • Developer
    • Lives here!
    • *****
    • Posts: 1874
      • Biplab's Blog
    Re: The 30 March 2008 build (4977) is out.
    « Reply #27 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: [Select]
    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;
             }
    Be a part of the solution, not a part of the problem.