Author Topic: "Can't read file's timestamp"  (Read 30619 times)

Offline atthewasteland

  • Single posting newcomer
  • *
  • Posts: 5
"Can't read file's timestamp"
« 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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: "Can't read file's timestamp"
« Reply #1 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) ?

Offline atthewasteland

  • Single posting newcomer
  • *
  • Posts: 5
Re: "Can't read file's timestamp"
« Reply #2 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: "Can't read file's timestamp"
« Reply #3 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)?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: "Can't read file's timestamp"
« Reply #4 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.

Offline atthewasteland

  • Single posting newcomer
  • *
  • Posts: 5
Re: "Can't read file's timestamp"
« Reply #5 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.

Offline atthewasteland

  • Single posting newcomer
  • *
  • Posts: 5
Re: "Can't read file's timestamp"
« Reply #6 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.