User forums > Announcements

Release 12.11 has arrived

<< < (12/18) > >>

Taiki:

--- Quote from: oBFusCATed on December 28, 2012, 06:29:16 pm ---
--- Quote from: Taiki on December 26, 2012, 12:43:10 am ---3- can't run anymore a normal instance + one in the debugger, it was damn useful to study soft comportment when he wasn't alone to access to some resources.

--- End quote ---
This sounds like a bug in the old version.
You can setup a tool to run your output executable.

--- End quote ---
Sure but the reason we use IDE is to have a lot of tools just under our hand and it's one less =/


--- Quote from: oBFusCATed on December 28, 2012, 06:29:16 pm ---
--- Quote from: Taiki on December 26, 2012, 12:43:10 am ---6- After a sigsev, the stack once hasn't been displayed. Maybe gdb failed at provide it but in this case, a message (ex: Stack unavailable) would be great.

--- End quote ---
If you can provide the full log from your debug session (see the settings), I can look at it.

--- End quote ---
I'll try to reproduce then send the log

oBFusCATed:

--- Quote from: Taiki on December 28, 2012, 07:36:52 pm ---Sure but the reason we use IDE is to have a lot of tools just under our hand and it's one less =/

--- End quote ---
I've told you how you can achieve the same thing...

Alpha:

--- Quote from: Taiki on December 26, 2012, 12:43:10 am ---PS: ICC support seems broken under both 10.05 and 12.11, on 12.11, the error message is that it doesn't find VS in the path.

--- End quote ---
Could you apply this patch to see if it resolves the problem?  (I am assuming that you do have MSVC installed.)

--- Code: ---Index: src/plugins/compilergcc/compilerICC.cpp
===================================================================
--- src/plugins/compilergcc/compilerICC.cpp (revision 8724)
+++ src/plugins/compilergcc/compilerICC.cpp (working copy)
@@ -71,57 +71,62 @@
                     for (unsigned int which_msvc = 0; which_msvc < array_size(msvcIds); ++which_msvc)
                     {
                         Compiler* vcComp = CompilerFactory::GetCompiler(msvcIds[which_msvc]);
-                        if (vcComp)
+                        if (!vcComp)
+                            continue; // compiler not registered? try next one
+
+                        wxString vcMasterNoMacros = vcComp->GetMasterPath();
+                        Manager::Get()->GetMacrosManager()->ReplaceMacros(vcMasterNoMacros);
+                        if (   !wxFileExists(vcMasterNoMacros + sep + wxT("bin") + sep + vcComp->GetPrograms().C)
+                            && !wxFileExists(vcMasterNoMacros + sep + vcComp->GetPrograms().C) )
+                            continue; // this MSVC is not installed; try next one
+
+                        const wxString& vcMasterPath = vcComp->GetMasterPath();
+                        if (m_ExtraPaths.Index(vcMasterPath) == wxNOT_FOUND)
+                            m_ExtraPaths.Add(vcMasterPath);
+                        if (  !vcMasterPath.EndsWith(wxT("bin"))
+                            && m_ExtraPaths.Index(vcMasterPath + sep + wxT("bin")) == wxNOT_FOUND )
                         {
-                            if (vcComp->AutoDetectInstallationDir() == adrDetected)
+                            m_ExtraPaths.Add(vcMasterPath + sep + wxT("bin"));
+                        }
+                        AddIncludeDir(vcMasterPath + _T("\\Include"));
+                        AddLibDir(vcMasterPath + _T("\\Lib"));
+                        AddResourceIncludeDir(vcMasterPath + _T("\\Include"));
+
+                        const wxArrayString& vcExtraPaths = vcComp->GetExtraPaths();
+                        for (size_t i = 0; i < vcExtraPaths.GetCount(); ++i)
+                        {
+                            if (   m_ExtraPaths.Index(vcExtraPaths[i]) == wxNOT_FOUND
+                                && wxDirExists(vcExtraPaths[i]) )
                             {
-                                const wxString& vcMasterPath = vcComp->GetMasterPath();
-                                if (m_ExtraPaths.Index(vcMasterPath) == wxNOT_FOUND &&
-                                    wxDirExists(vcMasterPath))
+                                m_ExtraPaths.Add(vcExtraPaths[i]);
+                            }
+                        }
+                        const wxArrayString& vcIncludeDirs = vcComp->GetIncludeDirs();
+                        for (size_t i = 0; i < vcIncludeDirs.GetCount(); ++i)
+                        {
+                            if (wxDirExists(vcIncludeDirs[i]))
+                            {
+                                if (m_IncludeDirs.Index(vcIncludeDirs[i]) == wxNOT_FOUND)
                                 {
-                                    m_ExtraPaths.Add(vcMasterPath);
+                                    AddIncludeDir(vcIncludeDirs[i]);
                                 }
-                                AddIncludeDir(vcMasterPath + _T("\\Include"));
-                                AddLibDir(vcMasterPath + _T("\\Lib"));
-                                AddResourceIncludeDir(vcMasterPath + _T("\\Include"));
-
-                                const wxArrayString& vcExtraPaths = vcComp->GetExtraPaths();
-                                for (size_t i = 0; i < vcExtraPaths.GetCount(); ++i)
+                                if (m_ResIncludeDirs.Index(vcIncludeDirs[i]) == wxNOT_FOUND)
                                 {
-                                    if (m_ExtraPaths.Index(vcExtraPaths[i]) == wxNOT_FOUND &&
-                                        wxDirExists(vcExtraPaths[i]))
-                                    {
-                                        m_ExtraPaths.Add(vcExtraPaths[i]);
-                                    }
+                                    AddResourceIncludeDir(vcIncludeDirs[i]);
                                 }
-                                const wxArrayString& vcIncludeDirs = vcComp->GetIncludeDirs();
-                                for (size_t i = 0; i < vcIncludeDirs.GetCount(); ++i)
-                                {
-                                    if (wxDirExists(vcIncludeDirs[i]))
-                                    {
-                                        if (m_IncludeDirs.Index(vcIncludeDirs[i]) == wxNOT_FOUND)
-                                        {
-                                            AddIncludeDir(vcIncludeDirs[i]);
-                                        }
-                                        if (m_ResIncludeDirs.Index(vcIncludeDirs[i]) == wxNOT_FOUND)
-                                        {
-                                            AddResourceIncludeDir(vcIncludeDirs[i]);
-                                        }
-                                    }
-                                }
-                                const wxArrayString& vcLibDirs = vcComp->GetLibDirs();
-                                for (size_t i = 0; i < vcLibDirs.GetCount(); ++i)
-                                {
-                                    if (m_LibDirs.Index(vcLibDirs[i]) == wxNOT_FOUND &&
-                                        wxDirExists(vcLibDirs[i]))
-                                    {
-                                        AddLibDir(vcLibDirs[i]);
-                                    }
-                                }
-                                msvcFound = true;
-                                break;
                             }
                         }
+                        const wxArrayString& vcLibDirs = vcComp->GetLibDirs();
+                        for (size_t i = 0; i < vcLibDirs.GetCount(); ++i)
+                        {
+                            if (   m_LibDirs.Index(vcLibDirs[i]) == wxNOT_FOUND
+                                && wxDirExists(vcLibDirs[i]) )
+                            {
+                                AddLibDir(vcLibDirs[i]);
+                            }
+                        }
+                        msvcFound = true;
+                        break;
                     }
 
                     if (!msvcFound)
@@ -130,7 +135,6 @@
                                         "This compiler requires MS compiler for proper functioning and\n"
                                         "it may not work without it."),
                                      _T("Error"), wxOK | wxICON_ERROR);
-
                     }
                 }
             }

--- End code ---

MortenMacFly:

--- Quote from: Taiki on December 28, 2012, 07:36:52 pm ---Sure but the reason we use IDE is to have a lot of tools just under our hand and it's one less =/

--- End quote ---
What you may fail to understand is that oBFusCATed suggested you setup a generic tool using macros in the IDE which you can use on all of your projects to achieve what you want. I've done the same, its vital for some pieces of software. The command is a one-liner, and is attached as "Tool" to C::B but actually starts your currently active target's executable detached (as an example, if you like it that way).

Taiki:

--- Quote from: Alpha on December 29, 2012, 02:52:49 am ---
--- Quote from: Taiki on December 26, 2012, 12:43:10 am ---PS: ICC support seems broken under both 10.05 and 12.11, on 12.11, the error message is that it doesn't find VS in the path.

--- End quote ---
Could you apply this patch to see if it resolves the problem?  (I am assuming that you do have MSVC installed.)

--- End quote ---

I tried to compile it with the source code of the 12.11 version but the plugin fail at load =/
Here is the DLL, compiled with MinGW (a quite recent version which come with GDB 7.5). https://dl.dropbox.com/u/12087072/compiler.dll

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version