i made 3 files:
kata2.cpp
kata2.h //header file for kata2.cpp
main_kata_2.cpp //execute file for all
when i compile main_kata_2.cpp, everything is OK. but when i compile, it give me error like this:
Code: Select all
Linking...
main_kata_2.obj : error LNK2001: unresolved external symbol "public: bool __thiscall kata2::run(bool &,bool &,bool &,bool &,bool &,enum irr::video::E_DRIVER_TYPE &)" (?run@kata2@@QAE_NAA_N0000AAW4E_DRIVER_TYPE@video@irr@@@Z)
main_kata_2.obj : error LNK2001: unresolved external symbol "public: __thiscall kata2::kata2(void)" (??0kata2@@QAE@XZ)
Debug/main_kata_2.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
main_kata_2.exe - 3 error(s), 0 warning(s)
is this bug? or maybe i wrote a wrong code?
why when i execute main_kata_2.cpp for the first time it gave me some errors?
regards,
ijo coim.