Advertisement
Guest User

two or more data types in declaration specifiers

a guest
Apr 2nd, 2012
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. main.c:13: error: two or more data types in declaration specifiers
  2. make[1]: *** [main.o] Error 1
  3. make: *** [build] Error 2
  4.  
  5. struct savetype{
  6. bool file_exists;
  7. }
  8.  
  9. #include "main.h"
  10. extern struct savetype save;
  11. int main (void){
  12. return 0;
  13. }
  14.  
  15. #include "main.h"
  16. struct savetype save;
  17. save.file_exists=true;
  18.  
  19. struct savetype{
  20. bool file_exists;
  21. };
  22. ^^^^ <-------------- Here!
  23.  
  24. #define TRUE 1
  25. #define FALSE 0
  26.  
  27. if (var == TRUE){
  28.  
  29. }
  30.  
  31. typedef int bool;
  32.  
  33. #include <stdbool.h>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement