Advertisement
Guest User

Untitled

a guest
Apr 16th, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. $ cat a.c
  2. #ifndef __linux__
  3. #error "__linux__ does not exist"
  4. #endif
  5. void a(void)
  6. {
  7. }
  8. $ for i in arm-eabi arm-linux-gnueabi arm-none-linux-gnueabi; do gcc=$i-gcc; $gcc --version; $gcc -c -o ~/tmp/a.o a.c; done
  9. arm-eabi-gcc (GCC) 4.4.3
  10. Copyright (C) 2009 Free Software Foundation, Inc.
  11. This is free software; see the source for copying conditions. There is NO
  12. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13.  
  14. a.c:2:2: error: #error "__linux__ does not exist"
  15. arm-linux-gnueabi-gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
  16. Copyright (C) 2011 Free Software Foundation, Inc.
  17. This is free software; see the source for copying conditions. There is NO
  18. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  19.  
  20. arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2010q1-202) 4.4.1
  21. Copyright (C) 2009 Free Software Foundation, Inc.
  22. This is free software; see the source for copying conditions. There is NO
  23. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement