c++ - VS2013 Unresolved External with constructor and destructor -


i trying make linked list program add 2 polynomials together, pretty simple. however, whenever try , build program, unresolved external error. exact error follows:

1>pg150_33_main.obj : error lnk2019: unresolved external symbol "public: __thiscall poly::poly(void)" (??0poly@@qae@xz) referenced in function _main 1>pg150_33_main.obj : error lnk2019: unresolved external symbol "public: __thiscall poly::~poly(void)" (??1poly@@qae@xz) referenced in function _main 1>c:\users\****\documents\visual studio 2013\projects\pg150_33_polys.cpp\debug\pg150_33_polys.cpp.exe : fatal error lnk1120: 2 unresolved externals 

i have never had issue before, , able build , compile other multi-file projects in vs without issues don't think in linker or environment settings. problem occurs once try , create instance of object in main, building project without trying create object not throw errors.

if needed can post contents of files when requested. have tried researching issue , closest find virtual constructor/destructor unrelated i'm getting.

thanks in advance!

edit: yes have seen page linked , marked duplicate. doesn't cover error. covers issues virtual destructors, or other methods of linking. don't use virtual destructors @ all, , while error similar, not solve issue.

further edit: problem has been solved via answer below. simple fix, stupid simple problem.

i suspect .h file has constructor , destructor defined prototype, never implemented them.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -