News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

"Can't read file's timestamp"

Started by atthewasteland, May 11, 2011, 07:45:09 PM

Previous topic - Next topic

atthewasteland

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.

Jenna

Does the file exist and is it readable by you (or the user who uses C::B) ?

atthewasteland

Quote from: jens 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) ?

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.

MortenMacFly

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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Jenna

Quote from: 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)?
Also make sure the access-rights are set correctly.

atthewasteland

Quote from: jens on May 12, 2011, 11:29:58 AM
Quote from: 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)?
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.

atthewasteland

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.