Code::Blocks
July 29, 2010, 05:53:58 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New release 10.05 is ready. Grab it while it's hot!!!
 
   Home   Help Search Login Register  :: WebsiteWiki  
Pages: [1]
  Send this topic  |  Print  
Author Topic: build targets (debug/release etc)  (Read 2427 times)
hd
Advanced newcomer
*
Posts: 43


WWW
« on: January 10, 2005, 12:50:10 am »

Hi,


If a source file used in one more targets, than IDE don't generate build command except one target.

After a small change in makefilegenerator.cpp I can successfully compile
debug/release targets Smile) as shown below:


void MakefileGenerator::DoAddMakefileTarget_Objs(wxString& buffer)
{
    //hd... m_ObjectFiles.Clear();
    wxString tmp;
    int targetsCount = m_Project->GetBuildTargetsCount();
    for (int x = 0; x < targetsCount; ++x)
    {
        ProjectBuildTarget* target = m_Project->GetBuildTarget(x);
        if (!target)
            break;
       
        m_ObjectFiles.Clear(); //hd...

        ....
       

--
Regards,
Hakki Dogusan
 Laughing
Logged
hd
Advanced newcomer
*
Posts: 43


WWW
« Reply #1 on: January 10, 2005, 12:52:55 am »

Hey too much smiling icons there... I think I'm happy Smile
Logged
hd
Advanced newcomer
*
Posts: 43


WWW
« Reply #2 on: January 10, 2005, 12:57:14 am »

I forgat something:

For each target I created a distinct object directory: .objs, objsd etc.

HTH
--
Regards,
Hakki Dogusan
Logged
Pages: [1]
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!