unresolved externals

from what ive seen this shouldnt cause an unresolved external - but i cant get it not to xD
any help appreciated, ty


1
2
3
4
5
6
7
8
//bhop.h
class c_bhop
{
public:
	void run(c_usercmd * cmd);
};

extern c_bhop bhop;


1
2
3
4
5
6
7
//bhop.cpp
c_bhop bhop;

void c_bhop::run(c_usercmd * cmd)
{
//actual code
}


1
2
//hooks.cpp
bhop.run(cmd)


errors:

Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol "class c_bhop bhop" (?bhop@@3Vc_bhop@@A) csgo-cheat C:\Users\me\Desktop\Coding\sdk-master\sdk-master\hooks.obj 1

Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol "public: void __thiscall c_bhop::run(class c_usercmd *)" (?run@c_bhop@@QAEXPAVc_usercmd@@@Z) csgo-cheat C:\Users\me\Desktop\Coding\sdk-master\sdk-master\hooks.obj 1



using c++17

:)
Last edited on
Is bhop.cpp in your project?
Do you see "compiling bhop.cpp" ?

You need to compile all your .cpp files.
i see the file is 'included in project' yet it doesnt show up in the build log?
i fixed it - turns out when it says 'included in project' doesnt mean its being compiled....

thank you so much.
Topic archived. No new replies allowed.