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.

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

Thanks!

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

Java has the same rule... :icon_rolleyes:

Really? I haven't had reason to use it though so.... woah!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.