code_junkie

Syntax error with different gcc version?

Nov 11th, 2011
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. a.c: In function `goUpDir':
  2. a.c:44: parse error before `char'
  3. a.c:45: `newDir' undeclared (first use in this function)
  4. a.c:45: (Each undeclared identifier is reported only once
  5. a.c:45: for each function it appears in.)
  6. a.c: In function `goIntoDir':
  7. a.c:54: parse error before `char'
  8. a.c:57: `newDir' undeclared (first use in this function)
  9. a.c:57: `oldDir' undeclared (first use in this function)
  10.  
  11. 44 char newDir[50] = "";
  12. 54 char* oldDir = (char*)get_current_dir_name();
  13.  
  14. uname -a
  15. gcc -v
  16.  
  17. -std=c89 -pedantic -Wall
  18.  
  19. -std=gnu89 -pedantic -Wall
  20.  
  21. gcc --version
Add Comment
Please, Sign In to add comment