Author Topic: Rebuilding instead of compiling  (Read 4150 times)

Offline InddZen

  • Multiple posting newcomer
  • *
  • Posts: 16
Rebuilding instead of compiling
« on: November 05, 2008, 06:29:31 pm »
Hi all,

I've noticed that in one of the computers I work on, everytime I compile my projects (whether they were modified or no) it's compiling all the files! I checked out and I found out that it's rebuilding them. And it's obviously very annoying since it's taking a lot of time.

I tried to check the compiler options but I'm not sure what to change.

So if anyone have an idea to solve this problem...

Thks in advance

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7787
    • My Best Post
Re: Rebuilding instead of compiling
« Reply #1 on: November 06, 2008, 05:05:27 am »
Did you verify the Date & Time is right on the PC?

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

Offline InddZen

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Rebuilding instead of compiling
« Reply #2 on: November 07, 2008, 09:31:42 am »
Yes I checked. And there's no problem about that. :(

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Rebuilding instead of compiling
« Reply #3 on: November 27, 2008, 05:31:54 pm »
I have meet the problem when I use visual c++ which I modify the system time to an early time.
So, I suspect that this problem is due to the same reason in code::blocks.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.