Is this a known bug on Code::Blocks??
Or Code::Blocks doesn't accept project names with spaces?
Not knowing what release you use at all, this is a bit awkward to answer. Since you most probably use RC2, I'll say "maybe" for now (because I don't remember, so many things have changed since then).
The current development version is pretty good at escaping spaces, I never experience a compiler problem if a space makes it way into a pathname by accident.
However, even if it works, path- or filenames that contain spaces or other non-alphanumeric characters (
+*?<>$) are a really, really bad idea because you are almost certain to run into problems sooner or later. If not with Code::Blocks, then with some other tool, some day.
Funnily, under Linux, you
can indeed use filenames like "
foo*bar?<>&%$" (this falls under S.I.S.O., but it still works), but please never do that - it is pure madness.
For example, '
$' will be interpreted as the beginning of a build variable by Code::Blocks, space characters as well as '
+' characters are
certain to cause the debugger or the resource compiler to fail (both tools are well-known for that), and other special chars (wildcards or
<>) may to confuse the shell or the compiler's commandline parser if not properly escaped (as does the space character).