Error Stray 302 In Program Ubuntu
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About stray 302 in program arduino Us Learn more about Stack Overflow the company Business Learn more about hiring error stray ‘ 302’ in program error stray ‘ 240’ in program developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the
Error Stray ‘ 342’ In Program In C
Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up error: stray '\302' in program up
Stray In Program C++
vote 1 down vote favorite I have the following piece of code (kernel code to be more specific) : static int is_sram_locked(void) { if (OMAP2_DEVICE_TYPE_GP == omap_type()) { /* RAMFW: R/W access to all initiators for all qualifier sets */ if (cpu_is_omap242x()) { __raw_writel(0xFF, OMAP24XX_VA_REQINFOPERM0); /* all q-vects */ __raw_writel(0xCFDE, OMAP24XX_VA_READPERM0); /* all i-read */ __raw_writel(0xCFDE, OMAP24XX_VA_WRITEPERM0); /* all i-write */ } if (cpu_is_omap34xx() && !cpu_is_am33xx()) { stray in program arduino __raw_writel(0xFFFF, OMAP34XX_VA_REQINFOPERM0); /* all q-vects */ __raw_writel(0xFFFF, OMAP34XX_VA_READPERM0); /* all i-read */ __raw_writel(0xFFFF, OMAP34XX_VA_WRITEPERM0); /* all i-write */ __raw_writel(0x0, OMAP34XX_VA_ADDR_MATCH2); __raw_writel(0xFFFFFFFF, OMAP34XX_VA_SMS_RG_ATT0); } return 0; } else return 1; /* assume locked with no PPA or security driver */ } This is copy-pasted from sublime 3, and as the title states, I get the following compilation error : error: stray '\302' in program error: stray '\273' in program On lines that start with __raw_writel( ... ) I have done research about the problem and I found out that this error tells me that there is an unprintable character on the line in cause. '\302 \273' is UTF-8 code for '»' (RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK) I read that this problem often appears when you copy-paste code from somewhere else and those unprintable characters may have skipped your attention or your keyboard has a different layout that types strange characters. I inspected the code very closely and I could not find any of those foreign characters. My big question is how can kernel code that I have never touched can present such errors ? And I have more than one file that comes with this error, which bri
help....! #include
Stray 342 In Program Arduino
0) auth_flag = 1; return auth_flag; } int main error stray ' 240' in program arduino (int argc,char *argv[]) { if(check_authentication(argv[1])) printf("Access Granted\n"); else printf("\nAccess Denied\n"); return 1; } **********Error Message********** asif@asif-desktop:~$ stray \302 in program arduino gcc -g test.c -o test test.c: In function ‘check_authentication’: test.c:6: error: stray ‘\302’ in program test.c:6: error: stray ‘\240’ in program test.c:6: error: stray ‘\302’ in program test.c:6: error: http://stackoverflow.com/questions/30979387/error-stray-302-in-program stray ‘\240’ in program test.c:8: error: stray ‘\302’ in program test.c:8: error: stray ‘\240’ in program test.c:9: error: stray ‘\302’ in program test.c:9: error: stray ‘\240’ in program test.c:10: error: stray ‘\302’ in program test.c:10: error: stray ‘\240’ in program test.c:11: error: stray ‘\302’ in program test.c:11: error: stray ‘\240’ in program test.c: In function ‘main’: test.c:16: error: https://answers.launchpad.net/ubuntu/+source/gcc-defaults/+question/68884 stray ‘\302’ in program test.c:16: error: stray ‘\240’ in program test.c:18: error: stray ‘\302’ in program test.c:18: error: stray ‘\240’ in program Question information Language: English Edit question Status: Solved For: Ubuntu gcc-defaults Edit question Assignee: No assignee Edit question Solved by: sidra Solved: 2009-04-28 Last query: 2009-04-28 Last reply: 2009-04-27 Related bugs Link existing bug Related FAQ: None Link to a FAQ adsadasda (asdsadasdsa-deactivatedaccount) said on 2009-04-27: #1 you receive these errors when you compile it or when you run it?i compiled your program and it works fine to me. Hemanth (hemanth-hm) said on 2009-04-27: #2 File is from a Windows box , is it? Try : $ sudo apt-get install tofrodos $ dos2unix test.c $ ggc -g test.c -o test sidra (sidrakhan154) said on 2009-04-27: #3 I m getting error in compiling my program with gcc.i installed the tofrodos package. sudo apt-get install tofrodos dos2unix test.c but the $ ggc -g test.c -o test this statment does not work.... bash: ggc: command not found which packages i need to insta
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About http://askubuntu.com/questions/272741/how-to-fix-compilation-errors-that-mention-stray-342-and-stray-200 Us Learn more about Stack Overflow the company Business Learn more about hiring developers http://sinkpad.blogspot.com/2014/03/error-stray-302-in-program.html or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted in program up and rise to the top How to fix compilation errors that mention “stray ‘\342’” and “stray ‘\200’”? up vote 5 down vote favorite I wrote this program: #include
stray ‘\240' in program callback_simple.c:9:1: error: stray ‘\302' in program callback_simple.c:9:1: error: stray ‘\240' in program callback_simple.c: In function ‘sig_handler': callback_simple.c:13:5: error: stray ‘\302' in program callback_simple.c:13:5: error: stray ‘\240' in program \302is the octal representation of the UTF-8 sequence 0xC2 You have invalid chars in the source. If you don't have any valid non ascii chars in your source, maybe in a double quoted string literal, you can simply convert your file back to ascii with the following command: tr -cd '\11\12\15\40-\176' < old.c