User forums > Using Code::Blocks
sudden amnesia of linker?
frithjofh:
sure
stahta01:
--- Quote from: frithjofh on September 10, 2013, 09:12:37 pm ---
Closing down c::b and restarting it reverts to the normal behavior and compiling works fine again...
frithjofh
--- End quote ---
I suggest trying a project full re-build and see if the error goes away.
If it does NOT, please post the full re-build that fails.
And, after re-starting CB, post a full re-build that works.
Tim S.
frithjofh:
OK, doing full rebuilds now...
build_5.txt is the log of the failed build. build_6.txt is the log of the consecutive good build.
this time I tried only to close and reopen the project, not closing down and restarting c::b.
in a next test I tried just reparsing the project after adding a new class, but that rendered the same described behavior. i still had to close and reopen the project to make it work.
regards
frithjofh
stahta01:
I am guessing that it might be a dependency issue, you might try deleting the cbproject.depend file and see if that fixes the issue.
Note: I am not sure if this is safe to do with the project open.
Edit: I do see a compile issue "-Iinclude -I -c" That -I is NOT in the good re-build log; but, is in the bad re-build log.
Tim S.
frithjofh:
mmmm, just my 4 cents...
as I really did nothing else but what I described earlier, I would say, that when adding a new file the cbproject.depend file is not correctly updated. Or there is some error being introduced in the process of updating.
Isn't c::b responsible for creating that file? I don't see how the user is in any way involved here...? At least I didn't change any compile options or edit the depend file manually after adding the new class to the project...
So, when is cbproject.depend generated anyway? On loading a project? Does it get changed by the wizard adding a new class, or the according new files, and is there some error in what the wizard writes to the file?
regards and thanks for the interest
frithjofh
PS: I would rather not like deleting cbproject.depend with my project open... maybe I'll set up a test project...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version