Undefined Reference Error?

Dec 30, 2015 at 7:58am
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 Dec 30, 2015 at 8:09am
Dec 30, 2015 at 8:07am
what is the error you are receiving?
Dec 30, 2015 at 8:10am
"undefined reference to
BloodInStool::BloodInStool() and BloodInStool::BloodAppears()" error.
Dec 30, 2015 at 8:13am
what does the constructor to BloodInStool() look like?
Dec 31, 2015 at 1:21am
BloodInStool::BloodInStool()
{
//ctor
}

There's nothing it in so that wouldn't cause this issue.
Dec 31, 2015 at 1:36am
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?
Jan 2, 2016 at 1:18am
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.