when compiling sometimes I get the error above. I sense that it has to do with some character endcoding. It looks like it happens when I copy code I got via email into my source.
It's the code someone else posted to a different question. I've copy and pasted it into an email, emailed that email to another computer and copy and pasted it back.
1. Copy and Paste coding from codeguru.com into Outlook 2003 email on Win XP
2. Copy and Paste the coding received via email (kmail) into kate on Suse Linux 10.0.
3. Save kate file as any name
4. g++ -Wall file.cpp
Sorry don't get me wrong but, No way to contact my email provider, the text is there in my email. I can read the text so why would my email provider "waste" his time? Do you know any email provider who would spend time on this?
I only assume that it is due to character encoding, I can't think of anything else, but who knows.
Okay, attach the same file here that creates the problem.
I am not sure if I can help you (its hard to replicate the configuration that you have) but one issue that I can think of could be line-end issue. Whenever you move a file saved in windows to linux/unix - there is a well-known problem related to the line ends. A special Cntrl-M character appears in the file when opened on unix - you could view them using vim. Try using the dos2unix command for the file and try compiling.
I will look further if I can help you - but don't rely on that.. have workarounds (I think you already have that). Regards.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.