User forums > Help

building problems

(1/3) > >>

UnknownArtists:
hi,

i am using gentoo and have installed code::blocks. i also have installed gcc (GCC) 4.2.0 and GNU gdb 6.6
now i've created an new project an would test the "hello world" code but there is my problem, i couldn't build it beacuase of the following error:

--- Code: ----------------- Build: Debug in test ---------------
WARNING: Can't read file's timestamp: /home/unknown/coding/test/main.c
Linking console executable: bin/Debug/test
g++: obj/Debug/main.o: No such file or directory
g++: no input files
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

--- End code ---
what am i doin wrong?

thx4help!


sorry for my bad english (please correct me if i'am wrong with it) i'am still learning :)

TDragon:
GCC 4.2 series has a bug when using -O2 optimization, which causes C::B's depslib component to be miscompiled. For a workaround, use -O2 -fno-strict-aliasing.

UnknownArtists:
sry but i don'T have any optimmizationflags enabled. i've just installed codeblocks and tested it with the named result..
i've checked all compileroptions but no optimization is enabled

any other idea?

Ceniza:
I'm also using Gentoo and GCC 4.2.0, and the same thing happened to me a few weeks ago. What I can't understand is why the "force compilation if can't read timestamp but file exists" code isn't working for others.

When I separated that code (depslib) to find the reason why it wasn't working, it worked fine. I tried with Code::Blocks once again, and it worked fine too.

Try uninstalling Code::Blocks, cleaning (delete object files and pch) and building again.

UnknownArtists:
where coul'd i find the
--- Quote ---"force compilation if can't read timestamp but file exists"
--- End quote ---
option?
and what is
--- Quote ---depslib
--- End quote ---
?

i've allready uninstalled codeblocks and even if i make a new project the error still exists :(
is there any option i have (unknown) activated?

i could compile the code without problems in the shell
--- Code: ---gcc main.c
--- End code ---
but not with CB

thx

Navigation

[0] Message Index

[#] Next page

Go to full version