The error I'm getting makes NO sense seeing as I'm defining the functions it's confused about directly above.

The error:
undefined reference to `accMan()'
undefined reference to `bookMan()'
undefined reference to `lend()'
undefined reference to `getBack()'
undefined reference to `tellMenu()'
undefined reference to `tellMenuAcc()'
undefined reference to `tellAllBooks()'
undefined reference to `tellAllAccounts()'


My code:

//Interface Functions
void bookMan();
void accMan();
void lend();
void getBack();
void tellMenu();
void tellMenuAcc();
void tellAllBooks();
void tellAllAccounts();

void go(int which)
{
    switch(which)
    {
        case 1:
        accMan();
        break;
        case 2:
        bookMan();
        break;
        case 3:
        lend();
        break;
        case 4:
        getBack();
        break;
        case 5:
        tellMenu();
        break;
        case 6:
        tellMenuAcc();
        break;
        case 7:
        tellAllBooks();
        break;
        case 8:
        tellAllAccounts();
        break;
        case 9:
        break;
        default:
        break;
    }
}

I've got just some prototypes, and a function that starts other functions. The parts that it's complaining about make no sense to me.

What it is complaining about is the fact that you have the prototypes for the functions, but the functions themselves aren't implemented anywhere. In other words, the functions are declared, but not defined. You need to have the actual implementation somewhere, either in this file or in another one which is linked with it at compile time.

Edited 4 Years Ago by Schol-R-LEA: n/a

I've done Java for so long now that I've forgotten some of those rules.

Java has the same rule... :icon_rolleyes:

This question has already been answered. Start a new discussion instead.