--sas

feb18-hello-compilation

Feb 24th, 2022
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. [lfi202217@head ~]$ mpicc feb18-hello.c
  2. /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o: In function `_start':
  3. (.text+0x20): undefined reference to `main'
  4. collect2: error: ld returned 1 exit status
  5. [lfi202217@head ~]$
  6. [lfi202217@head ~]$ mpicc feb18-hello.c -o feb18-hello.out
  7. /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o: In function `_start':
  8. (.text+0x20): undefined reference to `main'
  9. collect2: error: ld returned 1 exit status
  10. [lfi202217@head ~]$
  11. [lfi202217@head ~]$ gcc feb18-hello.c
  12. /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o: In function `_start':
  13. (.text+0x20): undefined reference to `main'
  14. collect2: error: ld returned 1 exit status
  15. [lfi202217@head ~]$
  16. [lfi202217@head ~]$ gcc feb18-hello.c -o feb18-hello.out
  17. /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o: In function `_start':
  18. (.text+0x20): undefined reference to `main'
  19. collect2: error: ld returned 1 exit status
Advertisement
Add Comment
Please, Sign In to add comment