You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: debugging/c_debugging.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ error: C++ style comments are not allowed in ISO C90
45
45
This is due to compiling with a C standard prior to C99. C++ style comments - // - instead of C-style comments /* */ - are not allowed in C90 an earlier (the -ansi flag). Remove the -ansi flag from your compile statement.
myprogram.c:9:1: error: expected ';' before '}' token
57
57
```
58
58
59
+
or
60
+
61
+
```(text)
62
+
stray223224.c: In function ‘main’:
63
+
stray223224.c:4:12: error: stray ‘\342’ in program
64
+
4 | printf(File not found error example\n”);
65
+
| ^
66
+
stray223224.c:4:13: error: stray ‘\200’ in program
67
+
4 | printf(File not found error example\n”);
68
+
| ^
69
+
stray223224.c:4:14: error: stray ‘\234’ in program
70
+
4 | printf(File not found error example\n”);
71
+
```
72
+
59
73
The likely cause is that you did a copy & paste from a program that uses smart quotes (such as MS Word or Google Docs). Double check each quote in your program to be sure you have an actual single/double quote and NOT a smart quote.
0 commit comments