Code::Blocks Forums

User forums => Help => Topic started by: atthewasteland on May 11, 2011, 07:45:09 pm

Title: "Can't read file's timestamp"
Post by: atthewasteland on May 11, 2011, 07:45:09 pm
When I try and run a console project that I have in CodeBlocks, I get the following error message:

-------------- Build: Release in exampleMower ---------------

WARNING: Can't read file's timestamp: /home/michael/Downloads/example/Class.cpp
Linking console executable: exampleMower
g++.real: ./Class.o: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
 
It may be a problem with the code I guess, but that message looks like a problem with the actual IDE. I'm running Ubuntu 10.10.

The project was running fine before I transferred some of the functions from the main file (exampleMower) to a new class file, then it started giving this.
Title: Re: "Can't read file's timestamp"
Post by: Jenna on May 11, 2011, 09:17:29 pm
Does the file exist and is it readable by you (or the user who uses C::B) ?
Title: Re: "Can't read file's timestamp"
Post by: atthewasteland on May 11, 2011, 11:11:21 pm
Does the file exist and is it readable by you (or the user who uses C::B) ?

Not quite sure what you mean, I'm kinda new at coding. There's several files, all in the same project. When I was just using one main, 3 headers, and a .so file, my code was working perfectly. However, now that I've transferred the functions in my main to a class (which is spread into both a .cpp and a header file), it gives this error message. Both of the class files do exist and are part of the project; in fact, when I tried to run the project initially, it gave me several of the regular error messages (undeclared variables, etc.), which I fixed. Only once they were all fixed and the code was runnable did it start giving me this error message and refusing to build.
Title: Re: "Can't read file's timestamp"
Post by: MortenMacFly on May 12, 2011, 07:33:27 am
Did you ensure the file is really named like that, meaning not with lowercase (e.g. class.cpp instead of Class.cpp)?
Title: Re: "Can't read file's timestamp"
Post by: Jenna on May 12, 2011, 11:29:58 am
Did you ensure the file is really named like that, meaning not with lowercase (e.g. class.cpp instead of Class.cpp)?
Also make sure the access-rights are set correctly.
Title: Re: "Can't read file's timestamp"
Post by: atthewasteland on May 12, 2011, 12:51:26 pm
Did you ensure the file is really named like that, meaning not with lowercase (e.g. class.cpp instead of Class.cpp)?
Also make sure the access-rights are set correctly.

What do you mean by that? All of the files are executable if that's what you mean.

The file is correctly named by the way.
Title: Re: "Can't read file's timestamp"
Post by: atthewasteland on May 12, 2011, 04:14:10 pm
OK, I don't know what the hell was happening, but I copied and pasted into a different project and it works fine, so I'm just gonna do it in the new project. Thanks anyway, dunno what that was.