I'm getting an error that states "undefined reference"
I'm new to c++, so I don't know for sure but I think the problem is in the following snippet of code
can you tell me how to fix it?
using namespace std;
We need whole program code to answer to your question. Most probably some libraries you are linking are undefined.