Code::Blocks

User forums => General (but related to Code::Blocks) => Topic started by: Aaron on March 14, 2015, 03:25:52 pm

Title: Project doesn't Build after changes. All items are not up to date though.
Post by: Aaron on March 14, 2015, 03:25:52 pm
Is this unusual? 

Build Log:
Target is up to date.
Nothing to be done (all items are up to date).

I'm using CB 13.12 with wxWidgets 3.0.2.  Tested same project on two different PCs, 1-Win XP, 1-Win 8.

Build had been working during coding, but now after adding labels, images, etc.  to frame and changing attributes of controls on the frame no build occurs and Run executes an old executable.

May have began after adding wxTE_PASSWORD to a text ctrl, and wxTAB_TRAVERSE to all other controls. (but they didn't  get built either).

Any input appreciated
Title: Re: Project doesn't Build after changes. All items are not up to date though.
Post by: stahta01 on March 14, 2015, 03:52:00 pm
Likely causes.

1. You failed to add all the project files to the project.
2. Computer time is not working right on some files. (Note if you copied file from one computer to another you should do a rebuild.)
3. A unknown Code::Blocks bug, that you can work around by using re-build or clean/build.

Tim S.
 
Title: Re: Project doesn't Build after changes. All items are not up to date though.
Post by: Aaron on March 14, 2015, 06:46:07 pm
Thanks Tim

I verified all project files, did rebuild, and clean build, same results.

So built it fresh from scratch and all was good.  I was just curious, if it was a huge project it wouldn't have been a quickie to start over. 
Title: Re: Project doesn't Build after changes. All items are not up to date though.
Post by: jens on March 14, 2015, 07:01:40 pm
If you have added files (or created them from scratch) you might have added them to the project, but not to the target(s) you tried to build.
Title: Re: Project doesn't Build after changes. All items are not up to date though.
Post by: Aaron on March 14, 2015, 07:34:39 pm
Thanks Jens

I checked and all the project files are listed in the 'Build target files', targets, all checked.

I'm migrating from VS to CB & wxWidgets so I have a bit to learn.
Title: Re: Project doesn't Build after changes. All items are not up to date though.
Post by: stahta01 on March 14, 2015, 07:44:38 pm
You might try deleting the project depends file if the problem happens again.
I would suggest doing that with the project closed.

Tim S.