Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Undefined reference to 'main' but I do have a main function. Any help/advice appreciated. 68 int main(int argc, char **argv) 69 70 71 72 73
Undefined reference to 'main' but I do have a main function. Any help/advice appreciated.
68 int main(int argc, char **argv) 69 70 71 72 73 74 75 char *inputFile -argv[1]; processInputFile(inputFile); return 0; dave@Jarvis1080: /mnt/c/Users/Dave Mahoney/Documents/CS1/assignment 3 dave@Jarvis1880:/mnt/c/Users/Dave Mahoney/Documents/CS1/assignment_3$ gcc ListyString.c usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-1inux-gnu/Scrt1.0: In function _start': (.text+0x20): undefined reference to main. collect2: error: ld returned 1 exit status dave@Jarvis1080:/mnt/c/Users/Dave Mahoney/Documents/CS1/assignment_3$Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started