Maybe this article gets the attention of a local optometrist or eye shop: I have a business opportunity for you! ;-).
I ran into a weird problem: I received an ARM GNU gcc project which failed during the generation of the S19 file in strange way:
'Executing target #80 Freedom_Zumo.siz' 'Invoking: ARM Ltd Windows GNU Create Flash Image' “C:/Freescale/CW MCU v10.3\eclipse\../Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-objcopy” -O srec Freedom_Zumo.elf "Freedom_Zumo.hex" ' ' Der Befehl "“C:" ist entweder falsch geschrieben oder konnte nicht gefunden werden. mingw32-make: *** [Freedom_Zumo.hex] Error 1
Interestingly, the error message is in German. I’m using a localized German version of Windows 8, so this message definitely was coming from the Windows operating system, and not from Eclipse or CodeWarrior?
Running the same project on a Windows with English local language returned the same thing, but in English:
'“C:' is not recognized as an internal or external command, operable program or batch file.
So Windows cannot find
C:/Freescale/CW MCU v10.3\eclipse\../Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-objcopy
But checking my files, that file exists, and it is working for other projects?
Checking the project settings, and everything looked fine:
Well, until I had a *realy* close look at the Console view:
Ahrg! It is not using the straight (programmers) double quotes! And this is really hard to spot in the Eclipse project settings. At least for myself, I can hardly see the difference:
Changing the double quotes to use “..” solved the problem 🙂
Conclusions
- Always use ‘straight’ double quotes (“…”) (typewriter or programmer quotation marks) and not “..” .
- Be careful with copy-paste things from documents or web pages as they can use different quotation marks which will not work.
- Check the Console view output in case of strange errors.
- I might get a call from a local optometrist 🙂
Happy Quoting 🙂
For reasons including what you describe here, I never let programs install into directories with space chars in the name.
LikeLike
Yes, it is definitely better to avoid spaces. Altough I think they get handled pretty well. But what is causing problems is anything which is not fitting into the 7bit ASCII code table, especially things like international characters like äöü and others: development tools and as well GNU gcc does not like it.
LikeLike
Countless times I have copied lines from one program source to another with the inserted code showing up buggy even though it worked in the original program. I don’t know how many hours of my life I have wasted because of this. Eventually, sometimes sooner, sometimes later, I simply delete and retype the line and it works fine.
I have speculated that somehow a hidden control character got inserted.
I now know where to look when this happens again.
Your short post may be worth more than “its weight in gold”. 😉
Thank you.
LikeLike
Yes, especially copy source from a web page or PDF file was always problematic for me.
LikeLike
Yes, me too!
At work sometimes I paste a few lines of code into an Outlook email msg, to send it to somebody else, and then it won’t compile. Outlook changes the ‘-‘ chars to something it thinks looks nicer, and changes the double quotes to it’s fancy ones like Erich encountered.
LikeLike