Author Topic: some suggest/bugreport for CB 8.02  (Read 5416 times)

Offline morning

  • Multiple posting newcomer
  • *
  • Posts: 11
    • handy software world
some suggest/bugreport for CB 8.02
« on: July 05, 2008, 12:10:09 pm »
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

Offline dje

  • Lives here!
  • ****
  • Posts: 682
Re: some suggest/bugreport for CB 8.02
« Reply #1 on: July 05, 2008, 12:15:17 pm »
4.some problem in manage multi project in one workplace

5.import vc project lost too many options
Hi !
I don't know what devs could do for these points with so much info...

Dje

Offline morning

  • Multiple posting newcomer
  • *
  • Posts: 11
    • handy software world
Re: some suggest/bugreport for CB 8.02
« Reply #2 on: July 05, 2008, 12:32:21 pm »
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

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: some suggest/bugreport for CB 8.02
« Reply #3 on: July 05, 2008, 12:36:16 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

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.
Be a part of the solution, not a part of the problem.

Offline morning

  • Multiple posting newcomer
  • *
  • Posts: 11
    • handy software world
Re: some suggest/bugreport for CB 8.02
« Reply #4 on: July 05, 2008, 01:04:49 pm »
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
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"

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.. :(
« Last Edit: July 05, 2008, 01:22:31 pm by morning »

Offline morning

  • Multiple posting newcomer
  • *
  • Posts: 11
    • handy software world
Re: some suggest/bugreport for CB 8.02
« Reply #5 on: July 05, 2008, 01:28:22 pm »
i have found the reason! :P

my project only have a configration!and cb report there is no configration
after i add anthoer configration,cb found two configration.and import all compiler/linker flags,it's so amazing.

maybe i have to check cb source, :)

BTW,virtual folders in vc project were lost
« Last Edit: July 05, 2008, 01:33:49 pm by morning »

Offline morning

  • Multiple posting newcomer
  • *
  • Posts: 11
    • handy software world
Re: some suggest/bugreport for CB 8.02
« Reply #6 on: July 05, 2008, 02:51:55 pm »
i've got the reason,why cb can not process those porject files including only single project configration

cb import use following keyword to find all configration

Quote
!IF  "$(CFG)" == "cbtest - Win32 Release"

!ELSEIF  "$(CFG)" == "cbtest - Win32 Debug"


but in single configration project file,there is no such words...so cb got 0 configration.
« Last Edit: July 05, 2008, 03:12:56 pm by morning »