Page 2 of 2

Re: Cannot make hello_world: Error 2

Posted: Wed Jan 20, 2010 3:53 pm
by WinterMute
Just to clarify after some discussion on IRC.

gnu tools tend to get annoyed when there are peculiar characters in the path and do peculiar things. In this case it was caused by a ' character but spaces and brackets will cause similar problems. The devkitPro installer/updater should prevent installing to paths with spaces but may allow other problematic characters, it's probably best to stick with letters numbers and underscores.

Re: Cannot make hello_world: Error 2

Posted: Fri Jan 22, 2010 9:55 pm
by vuurrobin
out of curiosity, does the problem lie within the gnu tools, or is it something we can fix by surrounding the path with quotes or something (that usally worked with using programs in batch files).

or can you tell me which program has this problem, so I can try it out for myself?

Re: Cannot make hello_world: Error 2

Posted: Fri Jan 22, 2010 11:22 pm
by WinterMute
it's something you should just avoid at all costs, there's no way to "fix" the "problem" other than just not doing silly things with paths. There are several characters which have special meaning in a bash shell which would need to be escaped, much like certain characters in C strings. Even if you escape these characters in the Makefile there's no guarantee that any given shellscript or executable will escape them before passing them on to another application. PEBKAC.