News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Project doesn't Build after changes. All items are not up to date though.

Started by Aaron, March 14, 2015, 03:25:52 PM

Previous topic - Next topic

Aaron

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

stahta01

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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Aaron

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. 

Jenna

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.

Aaron

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.

stahta01

You might try deleting the project depends file if the problem happens again.
I would suggest doing that with the project closed.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]