test.c(6) : warning C4013: 'add' undefined; assuming extern returning int
I’ve encountered many times when an undefined function will report an error,thus stopping the building process.
Why this time just a warning?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Perhaps you normally code in C++, and this is a C program. C++ is stricter than C; it won’t let you call undeclared functions.