The problem was that the file was named main.c and the BASIC file was named main.bas…
main.c
main.bas