error(plz give the solution for this)
-
Can you be more specific Do you see MSDN
-
Can you provide more information ? How can we help you with so limited information. Did you link to all necessary libraries ?
-
hi, i guess this is a simple probelem where u forgot to link with your .lib file. in the linker error you can get the function names which are not resolve. and include the .lib file in your project > settings > link > Object/Library modules. enter your .lib file name here. and rebuild all - ^-^ @|@ - redCat
-
maybe your error is(I guess)
you declare one function in header file but you havent this file in your code
like this:this is one example
//////in header file CAnswer.h/////////
class CAnswer : public CDialog
...
...
public:
int test();
....
};then you call this function in your file
void CAnswer::OnBnClickedButton2()
{
test();//Now you get this error
you need to delete this function(test) or you need to write test(function)
}Answer error LNK2019: unresolved external symbol "public: int __thiscall CAnswer::test(void)" (?test@CAnswer@@QAEHXZ) referenced in function "public: void __thiscall CAnswer::OnBnClickedButton2(void)" (?OnBnClickedButton2@CAnswer@@QAEXXZ)
Answer fatal error LNK1120: 1 unresolved externals
or maybe this function is in your code like this
int test()
{
return 0;
}again you get this error
or you need to import lib file to your project