c++ - LNK 2019 trying to link DLL and EXE -
this question has answer here:
i'm using visual studio 2013 sp1.
i have solution (game), 2 projects, engine , mygame. engine dll (can't lib because builds sfml). mygame exe, should build engine. i've gotten point engine builds fine, whenever compile mygame error:
error lnk2019: unresolved external symbol "private: void __thiscall aabb::init(struct vec2d,struct vec2d)" (?init@aabb@@aaexuvec2d@@0@z) referenced in function "public: __thiscall aabb::aabb(double,double,double,double)" (??0aabb@@qae@nnnn@z)
aabb::init 1 of functions defined in .cpp file, not header file.
have tried adding engine reference in mygame, same error occurs.
the linker telling you have declared function, not defined it. means have not supplied dll's import library (.lib) linker. import library created when compile dll. you'll need add import library additional dependencies linker configuration option.
Comments
Post a Comment