User forums > Using Code::Blocks

Object file not being updated

<< < (2/2)

BlueHazzard:

--- Code: ---||WARNING: Can't read file's timestamp: H:\CodeBlocks Projects\C Stuff\CleanString\main.c|
 obj\Debug\main.o||No such file or directory|

--- End code ---

hmm... This means c::b can't read the timestamp of your main.c file. I remeber  that other had the same issue, but i can't remember the solution ;) .
You can try the following:

* Make sure that no anti virus is blocking c::b -> Add the c::b folder and your project folder to the ignore list of your anti virus
* Check if you have the reading and writing permissions in your project folder
* Search the forum for this error message, im quite sure someone had the same problem and found a solution...
Ps. For future posts, please post your code and all logs in code tags (the # symbol in the "post reply" editor, or you enter them from hand: "[code ] Here comes your log/ code [/code ]" you have to remove the empty spaces between the []

greetigns

BlueHazzard:
Ok, i searched a bit the forum and it seems that this problem occurs if the file does not exists anymore on the harddrive, so some more stpes you can try, and please report back if something worked:

* Check if the file "H:\CodeBlocks Projects\C Stuff\CleanString\main.c" exists
* Check if you can read and write in this file
* Try the Plugins->Find broken files in project plugin
* Has this file a strange symbol in the project manager (on the left site of the window). If yes remove and read the file
* Never ever use white spaces and special characters that are non aschii in your paths (this leads to strange errors somethimes) use _ instead of spaces...*
* Try a new "Hello World" project
* Copy your code in this new project
i hope this helps
greetings

*interestingly i have a lot less problems with white spaces and special symbols under linux, windows sucks in this place pretty hard, specially if you copy files from windows to linux and vice versa

Jec1201961:
Thank you.

The file main.c was missing.

After i ran the plugin "find broken files in project". It gave me the option to remove the broken files. 

I ran Build ---> Clean
The Build ----> Build and voilla, back in business

Navigation

[0] Message Index

[*] Previous page

Go to full version