http://forums.codeblocks.org/index.php/topic,19604.new.html#new
Manager::Get()->GetProjectManager()->GetActiveProject()->GetFilename()Returned output:
/file/project/location/file.cbp(It returns the cbp file)
Manager::Get()->GetProjectManager()->GetActiveProject()->GetActiveBuildTarget()Returned output:
default
Manager::Get()->GetProjectManager()->GetActiveProject()->GetBasePath()Returned output:
/file/project/location/(It returns the project path)
Manager::Get()->GetProjectManager()->GetActiveProject()->GetCurrentlyCompilingTarget()->GetFilename()Returned output: (codeblocks crashes along with codeblocks debug file)
/file/project/location/file.cpp
CompileTargetBase::GetOutputFilenamebut it gives the output
/file/project/location.
wxString activetarget = Manager::Get()->GetProjectManager()->GetActiveProject()->GetActiveBuildTarget();
wxString outputfile = Manager::Get()->GetProjectManager()->GetActiveProject()->GetBuildTarget(activetarget)->GetOutputFilename();
wxString basepath = Manager::Get()->GetProjectManager()->GetActiveProject()->GetBasePath();
wxString executable = basepath + outputfile;
executable.replace(executable.find(_(".")), 4,_(".cpp"));
/file/project/location/file.cpp.
> print(GetProjectManager().GetActiveProject().GetBuildTarget(_T("src")).GetOutputFilename())
devel/codeblocks