Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(int argc, char **argv) { printf("Hello world!n"); return 0; }
  3.  
  4. $ gcc test.c -o test
  5. $ ./test
  6. Hello world!
  7.  
  8. $ clang test.c -o test -target
  9. $ ./test
  10. Hello world!
  11.  
  12. #include <stdio.h>
  13. #include <float.h>
  14. int main(int argc, char **argv) { printf("Hello world!n"); return 0; }
  15.  
  16. $ gcc test.c -o test
  17. $ ./test
  18. Hello world!
  19.  
  20. $ clang test.c -o test -target x86_64-pc-windows-gnu
  21. In file included from test.c:2:
  22. In file included from C:llvmbuiltlibclang8.0.0includefloat.h:45:
  23. C:mingw64-8.1.0x86_64-w64-mingw32includefloat.h:28:15: fatal error: 'float.h' file not found
  24. #include_next <float.h>
  25. ^~~~~~~~~
  26. 1 error generated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement