Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: morning 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
-
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
-
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
-
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.
-
step1:
use vc6 application wizard to create a consle project,select:A "Hello world" application
dump the original complier flags
/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
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.. :(
-
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
-
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
!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.