Hi,
I have a code and I want to add a .cpp file that I made and use the functions that I've done in that .cpp file. So at this project I am adding the ekf.cpp file and then included....but I get this errors.
1>Linking...
1>ekf.obj : error LNK2005: "void __cdecl copymatrix(int (* const)[2],int (* const)[2],int)" (?copymatrix@@YAXQAY01H0H@Z) already defined in I90ControllerDlg.obj
1>ekf.obj : error LNK2005: _main already defined in I90ControllerDlg.obj
1>ekf.obj : error LNK2005: "double u_err" (?u_err@@3NA) already defined in I90ControllerDlg.obj
1>ekf.obj : error LNK2005: "double m_err" (?m_err@@3NA) already defined in I90ControllerDlg.obj
1>ekf.obj : error LNK2005: "double dim" (?dim@@3NA) already defined in I90ControllerDlg.obj
1>ekf.obj : error LNK2005: "double angle" (?angle@@3NA) already defined in I90ControllerDlg.obj
1>.\Debug/I90Controller.exe : fatal error LNK1169: one or more multiply defined symbols found
1>Creating browse information file...
what is the problem? If I will not add to the project the ekf.cpp file then I will receive a error that the ekf.cpp can not be opened no such file or directory.