Undefined Reference Error?

For some odd reason I'm just now getting errors when I open and run my program in Code::Blocks. It was working before but now I get a "undefined reference to
BloodInStool::BloodInStool() and BloodInStool::BloodAppears()" error.

The files are in good places where it can be reached and all so I don't know why this error is occurring. Any help is appreciated.

1
2
3
4
5
6
7
  else if(a == 2){
        BloodInStool blood;
        blood.BloodAppears();

        BloodInStool triggBy;
        
    }
Last edited on
what is the error you are receiving?
"undefined reference to
BloodInStool::BloodInStool() and BloodInStool::BloodAppears()" error.
what does the constructor to BloodInStool() look like?
BloodInStool::BloodInStool()
{
//ctor
}

There's nothing it in so that wouldn't cause this issue.
An undefined reference occurs when the linker cannot find the definition of a function that is called. Is the source file that contains these functions part of your project?
Cire, yes my functions are part of my project and are connected to my project. I don't know what's going wrong here.
Topic archived. No new replies allowed.