0

clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wshadow mario.c -lcrypt -lcs50 -lm -o mario /usr/bin/../lib/gcc/x86_64-linux-gnu/7.4.0/../../../x86_64-linux-gnu/crt1.o: In function _start': (.text+0x20): undefined reference tomain' clang-7: error: linker command failed with exit code 1 (use -v to see invocation) Here is the error code. I did many of the things suggested on this forum such as resaving the file and restarting cloud 9, yet nothing has helped. Could it be that the library is malfunctioning?

  • It would be a great help if you published your code, anyway there seems to be some kind of problem with the main () function – MARS May 25 at 22:16

You must log in to answer this question.

Browse other questions tagged .