M
Mike
Got a wierd one here.
I have a class function with 4 parameters, defined like
myclass::myfunc(size_t p1, size_t p2, size_t p3 = 1, bool p4 = TRUE)
If I then call that function like
myptr->myfunc(1,2,3,FALSE);
I get a link error..
myprog.obj : error LNK2001: unresolved external symbol "public: void
__thiscall myclass::myfunc(unsigned int,unsigned int,unsigned int,int)"
(?myfunc@myclass@@QAEXIIIH@Z)
Debug/myprog.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
rf_modem.exe - 2 error(s), 0 warning(s)
However, if I change the definition and implementation, changing the
bool to another unsigned int, it all builds without any problems.
Anyone got any comments on why this should be ? It's MS Visual C++ V6
I have a class function with 4 parameters, defined like
myclass::myfunc(size_t p1, size_t p2, size_t p3 = 1, bool p4 = TRUE)
If I then call that function like
myptr->myfunc(1,2,3,FALSE);
I get a link error..
myprog.obj : error LNK2001: unresolved external symbol "public: void
__thiscall myclass::myfunc(unsigned int,unsigned int,unsigned int,int)"
(?myfunc@myclass@@QAEXIIIH@Z)
Debug/myprog.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
rf_modem.exe - 2 error(s), 0 warning(s)
However, if I change the definition and implementation, changing the
bool to another unsigned int, it all builds without any problems.
Anyone got any comments on why this should be ? It's MS Visual C++ V6