anonymous
  • anonymous
C Question: What's wrong with my source code?
Computer Science
jamiebookeater
  • jamiebookeater
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

anonymous
  • anonymous
Alright, I'm having problems with functions. Whenever I try to compile the source code, it returns this: Undefined symbols for architecture x86_64: "_main", referenced from: start in crt1.10.6.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status I removed the actual contents of the functions because they aren't the problem. #include void MainMenu(); void ProcessChoice(); void ProcessMenuReturn(); void ExchangeRates(); char Choice, MenuReturn; float Rates[7] = { 43.90 , // USD 59.50 , // EUR 34.12 , // SGD 0.58 , // JPY 67.94 , // GBP 45.24 , // AUD 43.07 }; // CAD void MainMenu() { //some code here } void ProcessChoice() { //some code here } void ProcessMenuReturn() { //some code here } void ExchangeRates() { // some code here }
anonymous
  • anonymous
is there a main() function anywhere in your program?
anonymous
  • anonymous
I don't see one. There is no entry point to the code.

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
first of all as mentioned, you are missing the main() function, which is the entry to your program, this is needed in C/C++, but there exists other languages which does not require main function, like python (the whole file it self becomes the main when it is executed)

Looking for something else?

Not the answer you are looking for? Search for more explanations.