Well, if you check the left margin (that with the line numbers), a red rectangle will mark the line of the current error (the one selected in "Build messages").
If you cannot see it my guess is you're using and old version of Code::Blocks, like RC2. If that's the case, please upgrade to a Nightly build.