News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

The 30 March 2008 build (4977) is out.

Started by killerbot, March 30, 2008, 11:51:26 PM

Previous topic - Next topic

killerbot

Quote from: 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>

DONE.

Loaden

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.

Biplab

Quote from: PsYhLo on April 02, 2008, 07:32:40 AM
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.

cacb

    Quote from: killerbot on March 30, 2008, 11:51:26 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

    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.

    Biplab

    Quote from: cacb on April 02, 2008, 08:42:09 PM
    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

    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.

    cacb

    Quote from: Biplab on April 03, 2008, 07:32:05 AM
    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).

    stahta01

    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


    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++.
    On Windows 10 64 bit and Windows 11 64 bit.
    --
    When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

    killerbot


    fackue

    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.

    gd_on

     :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 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

    hawk

    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.

    Pecan

    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---

    Biplab

    Quote from: 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

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

    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.