I was writing a program to search fro a range of prime numbers, and about halfway through to check my progress I decided to build it to make sure everything is working okay, I keep getting error LNK2019! It says it is an unresolved external.I did some research but I don't understand much of anything. Here is the code.
#include <iostream>
using namespace std;
int singlePrime(int subjectNumber);
int main() {
    cout<<"Would you like to find a single prime number(1), or a range(2)?"<<endl;
    int methodchoice;
    cin>>methodchoice;
    if(methodchoice ==1) {
        int subjectNumber;
        cout<<"Which number would you like to test for primeness?"<<endl;
        cin>>subjectNumber;
        int singlePrime(subjectNumber);
    }
    if(methodchoice==2) {
        int  lowRange;
        int highRange;
        cout<<"Input the low value for your range."<<endl;
        cin>> lowRange;
        cout<<"Input the high value for your range"<<endl;
        cin>> highRange;
        for (int index=lowRange; index<highRange;index++) {
            if (index=highRange) {
                break;
            }
            singlePrime(index);
        }
    }
}
 
     
     
     
    