.cpp file:
myclass::myfunc()
{
int w=round(param[2] * opt.tmplsize[0]); //the problem is here
}
when i declare the struct without static , it doesn't recognize my struct and with static i face linker error:
Error 33 error LNK1120: 1 unresolved externals
i couldn't solve it
what if i want to use my struct as normal?(without static)
then it says: a non-static member reference must be relative to a specific object