Problem: Target is up to date. Nothing to be done.

This is a discussion on Problem: Target is up to date. Nothing to be done. within the C++ Programming forums, part of the General Programming Boards category; Hello, I am using Code::Blocks, and when I try to compile my project, it is says Code: Target is up ...

  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    5

    Problem: Target is up to date. Nothing to be done.

    Hello,

    I am using Code::Blocks, and when I try to compile my project, it is says
    Code:
    Target is up to date. Nothing to be done.
    I pretty sure this have nothing to do with the code itself, but maybe with directory of my files or something. I programmed before on code::blocks and everything was fine, but now I cannot compile code at all.

    My project is with 2 .cpp files and 1 header file.

    Anyone got any idea how to solve this?

    Thanks.

  2. #2
    Registered User
    Join Date
    May 2010
    Posts
    2,804
    Does this happen when you press the rebuild button?

    If so are the files included in the project?

    Jim

  3. #3
    Registered User
    Join Date
    Oct 2010
    Posts
    5
    Yes, I tried rebuild but same thing happens again when I compile.

    That's simple project with class which includes two .cpp files and one header file.

  4. #4
    Registered User
    Join Date
    May 2010
    Posts
    2,804
    I would try to remove all files from the project, then re-adding them to the project making sure that you add them to all Targets.

    Then retry the re-build. Start with selecting Clean from the Build menu.

    Jim

  5. #5
    Registered User
    Join Date
    Oct 2010
    Posts
    5
    You mean re-add them to make sure .cpp files are in Source directory and .h in Header's? Yes I made that and still same =/

  6. #6
    Registered User
    Join Date
    May 2010
    Posts
    2,804
    Right click on one of your files that are in the "Project" frame.

    Select Properties

    Select Build.

    Insure that all the check boxes are checked (there should be at least 4 check boxes).


    What Version of Code::blocks are you using??

    Jim

  7. #7
    Registered User
    Join Date
    Oct 2010
    Posts
    5
    Yes made that, checked all boxes and built. Now on header file there is a lock simbol, dunno what that means.

    I was using older version with this problem, but today I reinstalled to newest (10.05), but still same happens. What is strange that this happens without any reason - first when I installed everything was ok, then after I compiled program few times thing this happened.

  8. #8
    Registered User
    Join Date
    May 2010
    Posts
    2,804
    Is the file read only?

    Do you have permissions to write to the file?

    Right click on the header Select properties. Is the Read only flag checked here?


    Jim

  9. #9
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,625
    .....
    Devoted my life to programming...

  10. #10
    Registered User
    Join Date
    Oct 2010
    Posts
    5
    Yes was read only, but now I unchecked, but still same thing. Probably accidently checked read only.

    Sipher --> what?

  11. #11
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,625
    Nothing, i just posted something wrong and i removed it.
    Devoted my life to programming...

  12. #12
    Registered User
    Join Date
    Oct 2010
    Posts
    11
    This sounds like a message from `make`. Look in your project's directory/ies. Do you see a file named 'Makefile' anywhere? If so, could you please post its contents?

  13. #13
    Registered User
    Join Date
    May 2009
    Posts
    2,683
    Turn on Full Compiler Logging
    FAQ - CodeBlocks

    Use "Clean" to delete the object files.
    Then try build, does CB give any clean or build commands in the build log?

    Note: Check the Computer and Files time stamp.

    Tim S.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Advancing Days
    By nhubred in forum C++ Programming
    Replies: 0
    Last Post: 06-01-2009, 06:22 PM
  2. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  3. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  4. Problem coding Banner sensor interrupt...
    By processing in forum C Programming
    Replies: 1
    Last Post: 02-14-2005, 03:41 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21