User forums > Using Code::Blocks

some suggest/bugreport for CB 8.02

(1/2) > >>

morning:
1.auto set masterpath's subfolder 'bin' as the first path in environment variables.
it brings some problem when working with ms compilers(64bit),it's not in subfolder 'bin ',but in 'x86_amd64'

to fix:
in compilergcc.cpp,in the following function
void CompilerGCC::SetEnvironmentForCompiler(const wxString& id, wxString& envPath)
commet this line
pathList.Add(masterPath + sep + _T("bin"));

2.it's not right to check extra path when modifying extra path,becouse we may use global variables intend of true path

to fix:
in function
void CompilerOptionsDlg::OnEditExtraPathClick(wxCommandEvent& /*event*/)

/*   wxFileName dir(control->GetString(control->GetSelection()) + wxFileName::GetPathSeparator());
    wxString initial = _T("");
    if (dir.DirExists())
        initial = dir.GetPath(wxPATH_GET_VOLUME);
*/
    EditPathDlg dlg(this, control->GetString(control->GetSelection())/*initial*/, _T(""), _("Edit directory"));

3.too weak in compile/link option
now,cb use a list of checkbox to set options,it can only set use the certain option or not.
but,many other option use a path as parameter,and some use digital value as parameter
the properties list in VS 2003/2005 is a good sample of set

4.some problem in manage multi project in one workplace

5.import vc project lost too many options

dje:

--- Quote from: morning on July 05, 2008, 12:10:09 pm ---4.some problem in manage multi project in one workplace

5.import vc project lost too many options

--- End quote ---
Hi !
I don't know what devs could do for these points with so much info...

Dje

morning:
reply to point 4:
sorry,i meant to say multi-project in one workspace.

when multi-project in one workspace,i cannot select the target in build menu,but can select by click the certain item in project management.

reply to point 5:
C::B project importer may be only import filelist,without link flags,cpmpiler flags.it's too bad.
i have to set project 1 by 1 after imported projects

Biplab:

--- Quote from: morning on July 05, 2008, 12:32:21 pm ---reply to point 5:
C::B project importer may be only import filelist,without link flags,cpmpiler flags.it's too bad.
i have to set project 1 by 1 after imported projects

--- End quote ---

Sorry to say but the importer plugin is not as bad as you're potraying. Please point out which compiler flags are not imported and we'll add it.

morning:
step1:
use vc6 application wizard to create a consle project,select:A "Hello world" application
dump the original complier flags

--- Quote ---/nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Release/cbtest.pch" /Yu"stdafx.h" /Fo"Release/" /Fd"Release/" /FD /c
--- End quote ---
dump the original link flags

--- Quote ---kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib  kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:no /pdb:"Release/cbtest.pdb" /machine:I386 /out:"Release/cbtest.exe"
--- End quote ---

step2:
open cb,select file->import project->ms virsual C++ workspace,it works fine!

 
OK,it works fine when only one project in workspace.

step3:
we add another project into this workspace.
delete the cb project/workspace created in step2

step4:
do as step2
OK,it works fine again.....

i'm so sorry.i made a mistake when check build flags,(i click at the root of the left list), :(

but cb cannot import my project created in a few month ago.i have no idea.. :(

Navigation

[0] Message Index

[#] Next page

Go to full version